[Yanel-dev] Access Log and Log4j 2
Michael Wechner
michael.wechner at wyona.com
Fri Sep 9 04:23:04 EDT 2016
cool :-)
I have added a comment:
To git at github.com:wyona/yanel.git
2766a14..d6f3cbe master -> master
Thanks
Michael
Am 09.09.16 um 09:20 schrieb basZero:
> Hi Michael,
>
> that helped. Thanks!
> you might remember that our realm has been logging its own line into
> the access log since the beginning (also for each request with all the
> metadata needed). Since I upgraded, that extra line has disappeared.
> So I had to find a solution to bring it back into the access log.
> Now things are solved! I looked at AccessLog instead of YanelServlet
> :-) Maybe you should comment the line of code in AccessLog so that
> others are not irritated too...
>
> Cheers, Balz
>
> On Fri, Sep 9, 2016 at 9:16 AM, Michael Wechner
> <michael.wechner at wyona.com <mailto:michael.wechner at wyona.com>> wrote:
>
> Hi Balz
>
> The class AccessLog itself is also using log4j2 implementation
> import org.apache.logging.log4j.LogManager
>
> but this is not used for the actual access logging
> (logs/access-cnode1.log), but "internal" issues.
>
> The access logging is setup inside YanelServlet
>
> private static Logger logAccess =
> Logger.getLogger(AccessLog.CATEGORY);
>
> which is still using log4j1 for the access logging (and hence
> configured inside WEB-INF/classes/log4j.properties), which I think
> should actually be changed to log4j2 eventually.
>
> What exactly are you trying to achieve?
>
> Thanks
>
> Michael
>
> Am 09.09.16 um 07:48 schrieb basZero:
>> Hi,
>>
>> question: yanel mainly upgraded to Log4j version 2, except for
>> the Access Logging (AccessLog.java). Is there any other special
>> configuration besides log4j.properties and log4j2.xml that makes
>> it possible that AccessLog.java can log via the old log4j version
>> into the Access Logfile?
>>
>> I'm not able to make other classes to log into the access log
>> too, everything goes into the regular log4j2-cnode1 file via
>> log4j v2...
>>
>> Any tips?
>>
>> Cheers, Balz
>>
>>
>
>
> --
> Yanel-development mailing list Yanel-development at wyona.com
> <mailto:Yanel-development at wyona.com>
> http://mx2.wyona.com/cgi-bin/mailman/listinfo/yanel-development
> <http://mx2.wyona.com/cgi-bin/mailman/listinfo/yanel-development>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mx2.wyona.com/pipermail/yanel-development/attachments/20160909/b32472fb/attachment.html>
More information about the Yanel-development
mailing list