logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pavan_734 <pavan_...@yahoo.co.in>
Subject How to get Local Time
Date Mon, 22 Aug 2011 12:03:03 GMT

log4c_category_log() is giving time in UTC even though I have set time zone
to Indian Standard Time (IST) using ln -sf
/usr/share/zoneinfo/Asia/Calcutta. How can I make the log4cxx to print logs
as per local time zone.

Should I need to add anything in the xml file. The current configuration is:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE log4c SYSTEM "">

<log4c version="1.2.1">
<layout name="basic" type="dated"/>
                <debug level="2"/>

        <category name="root" priority="debug"/>
        <category name="my_module" priority="info"
appender="logs/my_module.log" />
        <appender name="logs/my_module.log" type="stream" layout="dated" />

View this message in context: http://old.nabble.com/How-to-get-Local-Time-tp32310575p32310575.html
Sent from the Log4cxx - Users mailing list archive at Nabble.com.

View raw message