The default format for Util.Log is
[date] level - module - : message
So something like
[2025-03-04 08:29:28] INFO - main - : Crypt : dc7e84bfda79164b7ecd8486985d3860
I'd like to change
- the level from say INFO to I and ERROR to E
- record the time without the date
- change the - to comma
So something like
08:29:28 I,main,Crypt : dc7e84bfda79164b7ecd8486985d3860
My configuration properties file is the default one I found in samples.
# Configuration for log4j
log4j.rootCategory=DEBUG,console,result,test
log4j.appender.result=File
log4j.appender.result.File=result.log
log4j.appender.test=syslog
log4j.appender.test.level=ERROR
log4j.appender.console=Console
log4j.appender.console.level=WARN
log4j.appender.console.layout=level-message
# Logger configuration
log4j.logger.log=DEBUG
log4j.logger.log.util=DEBUG
log4j.logger.Util.Properties=WARN
log4j.logger.Util=DEBUG
log4j.logger.Util.Log=WARN
I can't find a document that describes the layout or formatter for this configuration file. I've looked at Ada documents and Java documents. I've found documents that describe all the fields that are present but nothing about the formatter.
Is there a link to a document that describes how to set up the formatter?
log4j.appender.console.layout.ConversionPattern=%-1p %c{1}:%L,%m%n(2)log4j.appender.result.layout.ConversionPattern=%-1p %c{1}:%L,%m%n(3)log4j.appender.test.layout.ConversionPattern=%-1p %c{1}:%L,%m%n