Change log pattern for Remote Logger

77 views
Skip to first unread message

the.wizard

unread,
Dec 30, 2011, 5:07:46 AM12/30/11
to gwt-log
Hi,
I want to know if there any way to change the log pattern of remote
logger. What I need now is to separate the log pattern for server code
and the log pattern for the remote logger (which is written in the
same file log), so the log file will be more easy to read (we can know
which is from the server code and which is from the remote logger).
Thanks.

Regards,
the.wizard

Fred Sauer

unread,
Jan 6, 2012, 5:54:34 PM1/6/12
to gwt...@googlegroups.com
Sure:
the.wizard

--
You received this message because you are subscribed to the Google Groups "gwt-log" group.
To post to this group, send email to gwt...@googlegroups.com.
To unsubscribe from this group, send email to gwt-log+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gwt-log?hl=en.




--
Fred Sauer
fr...@allen-sauer.com

the.wizard

unread,
Jan 11, 2012, 8:32:58 PM1/11/12
to gwt-log
Dear Fred,
I have tried to change the log pattern for remote logger, but it
didn't worked out as I expected... In the server side log, I use log4j
to write the remote logger log to a file. In the client code, I try to
log something using a custom category (log4j category that I defined
myself in the log4j properties file), but the remote logger always end
up saving the log using the "gwt-log" category, since it was hard
coded in the gwt-log code for log4jimplementation, when the logger
initialized. I need to define it using a custom category so I can
write the log from remote logger in to different file log in server.
Please kindly advice me.
Thanks.

Regards,
Willy
> f...@allen-sauer.com

Fred Sauer

unread,
Jan 12, 2012, 1:00:32 AM1/12/12
to gwt...@googlegroups.com
You can always create your own servlet to capture the logs from the client and do with them what you like.
fr...@allen-sauer.com
Reply all
Reply to author
Forward
0 new messages