Details
-
Task
-
Resolution: Done
-
Neutral
-
2.0
-
None
-
None
-
-
Empty show more show less
-
Empty show more show less
-
Scrum Sprint 8
Description
Case 1: print log for the whole package to current log files (such as debug level)
- Solution: Using Tools > Log Tools > Log Levels to configure log level for package info.magnolia.translation.ex
Case 2: print log for the whole package to separate log file
- Add below configuration to Appenders of log4j2.xml
<RollingFile name="sync-log-translation-extended" fileName="${magnolia.logs.dir}/magnolia-translation-extended.log" filePattern="${magnolia.logs.dir}/magnolia-translation-extended-%i.log" append="true"> <PatternLayout pattern="%d{dd.MM.yyyy HH:mm:ss}%m%n"/> <Policies> <SizeBasedTriggeringPolicy size="1MB"/> </Policies> <DefaultRolloverStrategy max="5"/> </RollingFile> <Async name="log-translation-extended"> <AppenderRef ref="sync-log-translation-extended"/> </Async>
- Add below configuration to Loggers of log4j.xml
<Logger name="info.magnolia.translation.ext" additivity="true" level="DEBUG"> <AppenderRef ref="log-translation-extended"/> </Logger>
- Using Tools > Log Tools > Log Levels to configure log level for package info.magnolia.translation.ex
Checklists
Acceptance criteria