ok, my suggestion came from my own experiences here:
I have 5 projects running on a same glassfish, and the log level is
set to FINEST, because I need to check the JPA logging as well.. (it
is a developmnet environment, so FINEST is a must have feature...)
You can imagine the size and the number of rollings I have here.. so,
after thousands greps and searchs in the log document, I started to
dream of having the project log files splitted..
* that's why I prefer to have it configurable in the admin console..
so, for production I can set level to info and keep all projects log
in a controllable size file, and for development (including hudson
CI) I can split them...
other, I use Hudson for Continuous Integration, so my server.log file
keep receiving tons of information and sometimes I am concentrated in
a unique project .. I do an operation and try to check the log file,
but between my operation and my grep, other 2 or 3 projects included
lines in the log file.. it is a search festival :)
* I trust in the architects of Glassfish.. sometimes we are so focused
in our little issues that we miss the whole picture, but I would have
this split easier then a manual procedure....
On Sat, Nov 22, 2008 at 11:03 PM, Peter Williams <Pete.Williams_at_sun.com> wrote:
> If you could simply filter the messages so as only to view those for your
> project, would that be good enough? Or is there a specific reason to have
> to messages stored in their own file? And even if so, can that reason be
> satisfied in other ways (e.g. being able to export filtered messages to a
> separate log file).
>
> From a tooling perspective, the separate file approach is a bit of a
> nightmare.
>
> -Peter
>
> Felipe Gaúcho wrote:
>>
>> Hi Carla,
>>
>> great job..
>>
>> if possible, some configuration options in the Glassfish admin console
>> would be very nice..
>>
>> specially this split between server.log and a specific file for each
>> project would be very nice.. actualy, IMHO, if each project logs in a
>> file called <project_name>.log by default, it would be fantastic :)
>>
>> * Not sure about the effort to implement that, or even if it makes
>> sense at all, but that are my 2 cents about logging :)
>>
>> On Sat, Nov 22, 2008 at 1:15 AM, Carla Mott <Carla.Mott_at_sun.com> wrote:
>>
>>>
>>> Hi Adam,
>>>
>>> I did some work on the v3 code and you should be able to specify a
>>> different
>>> log file and the format of the messages. In the v3 prelude release you
>>> edit
>>> the logging.properties file in the config directory and can specify the
>>> log
>>> filename as well as the new formatter.
>>>
>>> I have a blog that touches on this that may help. See
>>>
>>> http://weblogs.java.net/blog/carlavmott/archive/2008/10/glassfish_v3_lo.html
>>>
>>> hth,
>>> Carla
>>>
>>> Adam Bien wrote:
>>>
>>>>
>>>> Hi All,
>>>>
>>>> is it actually possible with Glassfish v2/v3 to write application
>>>> specific
>>>> log files separately in a custom format (not into server.log)? I was
>>>> asked
>>>> about this functionality several times.
>>>>
>>>>
>>>> regards,
>>>>
>>>> adam
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>
>