Issue 148 in as3-commons: AirFileTarget set timezone

14 views
Skip to first unread message

as3-c...@googlecode.com

unread,
Apr 2, 2015, 8:49:48 AM4/2/15
to as3-commons...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 148 by zikaelis...@gmail.com: AirFileTarget set timezone
https://code.google.com/p/as3-commons/issues/detail?id=148

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.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

as3-c...@googlecode.com

unread,
May 12, 2015, 9:26:58 AM5/12/15
to as3-commons...@googlegroups.com

Comment #1 on issue 148 by zikaelis...@gmail.com: AirFileTarget set timezone
https://code.google.com/p/as3-commons/issues/detail?id=148

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.
Reply all
Reply to author
Forward
0 new messages