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"/>
        <config>
                <bufsize>0</bufsize>
                <debug level="2"/>
                <nocleanup>0</nocleanup>
                <reread>1</reread>
        </config>

        <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" />


</log4c>
-- 
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.

Reply via email to