aspose file tools*
The moose likes Other Open Source Projects and the fly likes Log4j Configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Log4j Configuration" Watch "Log4j Configuration" New topic
Author

Log4j Configuration

Saket Kumar Sinha
Ranch Hand

Joined: Aug 04, 2011
Posts: 31


Hi All,

I am using SocketAppender for Logging. All Logs are getting logged into one remote server which is listening the log events on some socket.
My Problem is if remote logging server is down then log events are not getting captured.
I want that if remote logging server is down then the log should be appended to file in the local System.
Is this type of configuration is possible.
Please help me with some suitable links !!

Thanks!!
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18115
    
    8

If there's nothing available in the package, there's nothing to stop you from writing your own appender which does that. The source code is freely available, after all. Have a look at the source code for SocketAppender and the various kinds of FileAppender.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Log4j Configuration
 
Similar Threads
Two logging questions
Log4j : custom each log file for each client in the network
Servlets in multiple JVMs sharing one App log file?
JDK Logging API :- File rotation and .lck file issue
J2EE and Logging