I have created a Priority derived class (lets say it's called XPriority) and added some new Priorities. When using a SocketAppender to send the logging messages to a remote/local logging host, any XPriority-specific messages appear as 'DEBUG' on the server. The reason for this is that the Priority object is not serialized to the object stream. Instead, the Priority is sent accross the socket as an integer value. When the priority value reaches the server, the server creates a Priority object which is then used to obtain a priority name from the received integer value. However, the Priority class knows nothing of the additional Priorities defined in the XPriority class, and 'DEBUG' is returned when the Priority.toPriority(int) method is called. As a result, all logging messages that have a 'custom' priority appear as 'DEBUG' on the logging server. The logging messages appear correctly if directed to a System.out FileAppender.
I am aware of this problem. I'll fix it for the next release. Ceki
Mark, Problem has been fixed. I'll commit the new code after some more testing... Ceki