users@glassfish.java.net

Re: per application logging

From: Naman Mehta <naman.mehta_at_oracle.com>
Date: Thu, 19 May 2011 09:21:15 +0530

hi,

It's not possible directly by specifying properties.

Work around for this to write your own custom handler and log the
particular package data to your own file.

I had blog on the same line:
http://blogs.oracle.com/naman/entry/configure_my_custom_log_handler

Regards,
Naman

On Wednesday 18 May 2011 04:38 PM, forums_at_java.net wrote:
> Hi all,
>
> I've been digging a bit over the net, and couldn't find an answer to my
> needs.
>
> I would like to provide a "per-application" login. Quite simply, I would
> like for the specific logs from my different applications deployed on
> a same
> server be written to a different file. It is ok if logs are filter by
> package
> name. e.g. all logs from *com.company.project* go in a *project.log*
> file.
>
> Is there any elegant way to do this on GlassFish 3.1? I would be using
> Java
> logging (preferably) and wish to be able to edit simply (that is without
> redeploying) the log levels, through admin console or by editing a
> property
> file.
>
> Thanks in advance for your help.
>
>
> --
>
> [Message sent by forum member 'Roinou']
>
> View Post: http://forums.java.net/node/803338
>
>