doublefx / as3-commons

Automatically exported from code.google.com/p/as3-commons
0 stars 0 forks source link

AirFileTarget set timezone #148

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I've used this library to implement logging for an air application.
Everything works fine except that when logging to file i get utc datetime 
instead of the right timezone. 

Logger is created with this line

LOGGER_FACTORY.setup = new SimpleTargetSetup(new MergedTarget(new 
org.as3commons.logging.setup.target.TraceTarget(), new AirFileTarget(logPath)));

Notice that the TraceTarget works fine.

I've tried to see if there is a way to force it to use "local time" but i 
couldn't find one.
As today i'm getting logged records where time differs of 2 hours from real 
local time.
Is there something i can do or something i am doing wrong?

Thank you 
M.

Original issue reported on code.google.com by zikaelis...@gmail.com on 2 Apr 2015 at 12:49

GoogleCodeExporter commented 8 years ago
FYI
I managed to make it work by cloning the AirFileTarget into a CustomFileTarget 
file changing the code that use UTC date for the logging rows.
I had to change a few lines to avoid compiling errors for some parameters 
(mostly due to different implmentations between library and source visibile 
here i guess) but now it works just fine.
M.

Original comment by zikaelis...@gmail.com on 12 May 2015 at 1:26