I have been asked by my company if it is possible to setup a distributed
environment for log4j and Chainsaw, in which all of our application servers
would be logging to one "Log Server", and multiple Chainsaw clients would
connect to the "Log Server". That way any user can connect to a central
server and view the logging of all the application servers.
I did some research and I think I need to setup the following environment:
- A SocketAppender on each of the Application Servers
- A SocketReciever on the "Log Server" for each appender/receiver combo
- A SocketHubAppender on the "Log Server" so that multiple chainsaw clients
can connect
- A SocketHubReceiver for each of the Chainsaw clients.
I was wondering if this was even possible, to have logging messages routed
through a server with a SocketReceiver/SocketHubAppender Combination, and
if so how would I set this up? I could I get the two interfaces to
communicate with each other?
Thank you,
Giancarlo V. Martinez