Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AirFileTarget set timezone #148

Open
GoogleCodeExporter opened this issue Mar 13, 2016 · 1 comment
Open

AirFileTarget set timezone #148

GoogleCodeExporter opened this issue Mar 13, 2016 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 2 Apr 2015 at 12:49

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 12 May 2015 at 1:26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant