I have a need to prefix all my log message text with an installation name.
The installation name will indicate which application installation produced
the log message. This is important as we are going to collect and store all
log messages on a centralized repository. Identifying the installation as
well as the host address is vital.
Has anyone implemented a similar feature that does not require the logging
client to manually add the installation? My original design was to wrap the
Log concrete implementation. However, this requires a wrapper per concrete
implementation and an awareness of which logger is being used. Not a
favorable design. Additionally, my goal is to not adversely affect the Log
interface.
If anyone has a suggestion or any details on a solution design, I would
appreciate the info.
Thanks,
--billc