06-20-2014 07:27 AM
06-20-2014 11:14 PM
log4j.appender.moduleLog=org.apache.log4j.FileAppender
log4j.appender.moduleLog.File=yourmodule.log
log4j.appender.moduleLog.layout=org.apache.log4j.PatternLayout
log4j.appender.moduleLog.layout.ConversionPattern=%d [%24F:%t:%L] - %m%n
log4j.logger.com.yourcompany.your.module=info,moduleLog
06-24-2014 05:11 AM
1: my_module_id.amp\log4j.properties
2: my_module_id.amp\config\alfresco\module\my_module_id\
log4j.logger.my_module_id=info,moduleLog
log4j.appender.moduleLog=org.apache.log4j.FileAppender
log4j.appender.moduleLog.File=my_module_id.log
log4j.appender.moduleLog.layout=org.apache.log4j.PatternLayout
log4j.appender.moduleLog.layout.ConversionPattern=%d [%24F:%t:%L] - %m%n
logger.error("test error msg");
06-24-2014 05:33 AM
classpath*:alfresco/module/*/log4j.properties
log4j.rootLogger=TRACE, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d [%24F:%t:%L] - %m%n
log4j.appender.moduleLog=org.apache.log4j.FileAppender
log4j.appender.moduleLog.File=my_module_id.log
log4j.appender.moduleLog.layout=org.apache.log4j.PatternLayout
log4j.appender.moduleLog.layout.ConversionPattern=%d [%24F:%t:%L] - %m%n
log4j.logger.com.yourcompany.your.custom.demo=info,moduleLog
06-24-2014 08:27 AM
log4j.appender.moduleLog=org.apache.log4j.FileAppender
log4j.appender.moduleLog.File=my_module_id.log
log4j.appender.moduleLog.layout=org.apache.log4j.PatternLayout
log4j.appender.moduleLog.layout.ConversionPattern=%d [%24F:%t:%L] - %m%n
log4j.logger.com.yourcompany.your.custom.demo=info,moduleLog
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.