Friday, May 18, 2012
 
The best way to analyze your logs! Minimize
 Log4Net Mail archive   

The Log4Net mailing list is a great source of information about using log4Net, in this forum we collect all the messages in the log4net user list and some selected threads from the developer list.

Subject: Question about RollingFileAppender output ending in a txt extension?
Prev Next
You are not authorized to post a reply.

Author Messages
Secules, Christopher T [AMSRD-AAR-AEF-A]

11/15/2005 4:54 PM  

I've tried playing around with my config file wrt log file names, and I can't seem to get what I'm looking for.  I am wondering if there is a way to have the output from the RollingFileAppender save all the log files as text files (.txt).  I've noticed that if I specify just a date pattern in the DatePattern parameter, the resulting log files I get are named:

Server-2005-11-15
Server-2005-11-15.1
Server-2005-11-15.2
Server-2005-11-15.3
Server-2005-11-15.4
Server-2005-11-15.5
And so on...

I'm looking for something like:

Server-2005-11-15.txt
Server-2005-11-15.1.txt
Server-2005-11-15.2.txt
Server-2005-11-15.3.txt
Server-2005-11-15.4.txt
Server-2005-11-15.5.txt
And so on...so that the default program to open it is something like Notepad, and not "Unknown Application"

Does anyone know of any way to do this, preferrably without extending the source code and just using the pre-packaged log4net.dll?

Thanks a lot!
Chris

You are not authorized to post a reply.
Forums > Log4Net > Log4Net Mail archive > Question about RollingFileAppender output ending in a txt extension?



ActiveForums 3.7

 

 

 

 

 

 

 

 

Log4Net Dashboard

Log analysis and monitoring made easy!

Log4Net Dashboard is a log viewer that can read log statements from a variety of logging output targets.

You can download a free developer version.

  

Check it out!

On the demonstration site you can try it  with live data.demo.l4ndash.com - Try Log4Net Dashboard with live data

The mail archive is a copy of all the mail sent to the mail address: log4net-user@logging.apache.org, organized as a forum.

If you would like to participate in the mail list, send a mail to log4net-user-subscribe@logging.apache.org.

More information about the mailing list is available on: http://logging.apache.org/log4net/support.html

 

A complete topic list is available and can be viewed here (warning, it takes some time to load)

 

Copyright 2005-2008 by FaktNet AS Terms Of Use Privacy Statement