Just in case of someone's interest... I wrote own (very simple) formatter with the next syntax:
%d - date of message. Can be parameterized, e.g.: %d{HH:mm:ss};
%l - log record's level;
%L - source logger's name;
%C - class - logger request issuer;
%M - method - logger request issuer;
%t - "<Current_thread_name> (thread_ID)";
%m - actually log message.
Pattern may be configured in file akformatter.properties, which must be located at domain_dir/config. Configuration property:
pattern=%d [%l] %m
If no such file will be found (or empty pattern specified) the default pattern ("%d [%C - %t] %m") will be used.
In Glassfish v3 formatter can be applied by adding this line:
com.sun.enterprise.server.logging.FileandSyslogHandler.formatter=akiselyov.formatter.AKiselyovFormatter
into the domain_dir/config/logging.properties file. Also you need to place akformatter.jar in your domain_dir/lib/ext directory. Source code bundled into formatter's JAR.
[Message sent by forum member 'alexander_kiselyov']
http://forums.java.net/jive/thread.jspa?messageID=483165