You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Shailesh Barde <sh...@rediffmail.com> on 2005/12/15 05:51:48 UTC
@@Is it Possible!###
Friends,
I have to modify my application so that it will create a logs folder having its name as per the user name who is logged in the application.Also,that folder should have Timestamp.
Presently i have a log4j properties in my WEB-INF\classes\ folder who takes care of creating foler like [debug.txt_2005_11_14.log,info.txt_2005_11_14.log,error.txt_2005_11_14.log].But now i have modify it for getting the folder created like
shailesh.txt_2005_12_15.log]where shailesh is name of user who logged in.
I have to create user specific log file.
1>Can anyone guide me to tell how the Userdefined Folder for logs has to be created?
2>Does the root Logger need to be set with some specific appenders?
I have to carry out this task using lo4j.
Please guide....
Regards,
Shailesh
Re: @@Is it Possible!###
Posted by James Stauffer <st...@gmail.com>.
You would probably have to write your own appender. You might want to
look at overriding the rolling date appender.
On 15 Dec 2005 04:51:48 -0000, Shailesh Barde <sh...@rediffmail.com> wrote:
>
> Friends,
> I have to modify my application so that it will create a logs folder having its name as per the user name who is logged in the application.Also,that folder should have Timestamp.
> Presently i have a log4j properties in my WEB-INF\classes\ folder who takes care of creating foler like [debug.txt_2005_11_14.log,info.txt_2005_11_14.log,error.txt_2005_11_14.log].But now i have modify it for getting the folder created like
> shailesh.txt_2005_12_15.log]where shailesh is name of user who logged in.
> I have to create user specific log file.
>
> 1>Can anyone guide me to tell how the Userdefined Folder for logs has to be created?
> 2>Does the root Logger need to be set with some specific appenders?
>
> I have to carry out this task using lo4j.
> Please guide....
>
>
> Regards,
> Shailesh
>
--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org