What is the best way to do a standard logging/tracking mechanism for a distributed architecture?

Robert Castaneda

Most application servers provide an api to do logging, however if you want maximum portability, I would recommend using a third party package, that you can take with you. An open source libarary such as log4java http://www.log4j.org/ can be used and fits well with a variety of technologies including EJB and CORBA.

[Does log4j really have support for multitier architectures? That is, so log messages generated on different hosts end up in the same place? -Alex]