Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Log4j Configuration

 
Saket Kumar Sinha
Ranch Hand
Posts: 32
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Sheriff
Pie
Posts: 20953
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic