users@glassfish.java.net

Re: Log Segregation

From: Daniel H. Cavalcanti <dhcavalcanti_at_gmail.com>
Date: Fri, 05 Oct 2007 17:33:00 -0400

Yes... this seems to be exactly what I needed.
I'll try it out and let you know how it goes...
thanks!
Daniel.
Eduardo Pelegri-Llopart wrote:
> did you see this writeup by Frank?
>
> http://blogs.sun.com/fkieviet/entry/using_nested_diagnostics_contexts_in
>
> Let me know, I want to write a spotlight about it at TheAquarium.
>
> Thanks,
> - eduard/o
>
> Daniel H. Cavalcanti wrote:
>> Hi...
>> I have a question about Glassfish logging features.
>> Suppose I have to enterprise applications deployed under the same
>> domain: sample-enterprise-1.0.ear and sample-enterprise-1.1.ear.
>> They are the same application except that version 1.1 had some bug
>> fixes, for example. In particular contexts, it is desirable to run
>> both applications in parallel to phase the new version in.
>> Is there a way to segregate the logs for these two applications somehow?
>>
>> Here is a sample of a log entry generated by the application:
>> [#|2007-10-02T11:23:40.532-0500|FINEST|sun-appserver9.1|com.localmatters.flexiq.collector.producer.ProducerWS|_ThreadID=28;_ThreadName=httpSSLWorkerThread-11080-2;ClassName=com.localmatters.flexiq.
>>
>> collector.producer.ProducerWS;MethodName=send;_RequestID=916d031b-fb8c-47dc-bfae-ce2fea52da36;|Validating
>> message.|#]
>>
>> From it, there is no way to know whether it came from version 1.0 or
>> 1.1. Would there be a way to add a field or marker to identify the
>> version?
>> For example,
>> [#|2007-10-02T11:23:40.532-0500|FINEST|sun-appserver9.1|com.localmatters.flexiq.collector.producer.ProducerWS|*Version=1.1*;_ThreadID=28;_ThreadName=httpSSLWorkerThread-11080-2;ClassName=com.localmatters.flexiq.
>>
>> collector.producer.ProducerWS;MethodName=send;_RequestID=916d031b-fb8c-47dc-bfae-ce2fea52da36;|Validating
>> message.|#]
>>
>> or
>>
>> [#|2007-10-02T11:23:40.532-0500|FINEST|sun-appserver9.1|com.localmatters.flexiq.collector.producer.ProducerWS|*Version=1.1*|_ThreadID=28;_ThreadName=httpSSLWorkerThread-11080-2;ClassName=com.localmatters.flexiq.
>>
>> collector.producer.ProducerWS;MethodName=send;_RequestID=916d031b-fb8c-47dc-bfae-ce2fea52da36;|Validating
>> message.|#]
>>
>>
>> thanks,
>> Daniel.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>