You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Bence Takács <ta...@gmail.com> on 2006/12/07 13:36:34 UTC

Logging into different files depending on the log client's host

Hello

The documentation of SocketServer says that I can set different log
configurations for different log clients.
(
http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/SocketServer.html)

I made different config files for the log clients, restart the server and
then get the following exception:

Connected to client at /172.16.200.13
Locating configuration file for /172.16.200.13
Could not find config file [/mnt/log/.lcf].
Could not find config file [/mnt/log/generic.lcf]. Will use the default
hierarchy.

But I _have_ a config file called 172.16.200.13.lcf in the log directory. I
tried this with [hostname].lcf too, but get the same result.

Any tips?

Thanks:
   Bence