forked from Zimbra/zm-mailbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZCS-11112: Updated log4j.properties.production file as per log4j-2.17…
… documentation
- Loading branch information
1 parent
31a4480
commit 1cb7e31
Showing
8 changed files
with
517 additions
and
301 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,34 @@ | ||
# An example log4j configuration file that outputs to System.out. The | ||
# output information consists of relative time, log level, thread | ||
# name, logger name, nested diagnostic context and the message in that | ||
# order. | ||
status = error | ||
dest = err | ||
name = PropertiesConfig | ||
packages = com.zimbra | ||
|
||
# For the general syntax of property based configuration files see the | ||
# documenation of org.apache.log4j.PropertyConfigurator. | ||
# Appender MILTER writes to the file "/opt/zimbra/log/mailbox.log". | ||
# Daily rolling policy with compressing the old log file while rotating!! | ||
# The archived log files location can be changed using FileNamePattern value | ||
|
||
log4j.threshhold=OFF | ||
log4j.rootLogger=INFO,MILTER | ||
log4j.appender.MILTER=org.apache.log4j.rolling.RollingFileAppender | ||
log4j.appender.MILTER.RollingPolicy=org.apache.log4j.rolling.TimeBasedRollingPolicy | ||
log4j.appender.MILTER.RollingPolicy.FileNamePattern=/opt/zimbra/log/milter.log.%d{yyyy-MM-dd} | ||
log4j.appender.MILTER.File=/opt/zimbra/log/milter.log | ||
log4j.appender.MILTER.layout=com.zimbra.common.util.ZimbraPatternLayout | ||
log4j.appender.MILTER.layout.ConversionPattern=%d %-5p [%t] [%z] %c{1} - %m%n | ||
log4j.additivity.zimbra.milter=false | ||
log4j.logger.zimbra.milter=INFO,MILTER | ||
log4j.additivity.zimbra.security=false | ||
log4j.logger.zimbra.security=INFO,MILTER | ||
# Reference https://logging.apache.org/log4j/2.0/manual/configuration.html#ConfigurationSyntax | ||
|
||
appender.MILTER.type = RollingFile | ||
appender.MILTER.name = milterFile | ||
appender.MILTER.fileName = /opt/zimbra/log/milter.log | ||
appender.MILTER.filePattern = /opt/zimbra/log/milter.log.%d{yyyy-MM-dd} | ||
appender.MILTER.layout.type = PatternLayout | ||
appender.MILTER.layout.pattern = %d %-5p [%t] [%z] %c{1} - %m%n | ||
appender.MILTER.policies.type = Policies | ||
appender.MILTER.policies.time.type = TimeBasedTriggeringPolicy | ||
appender.MILTER.policies.time.interval = 2 | ||
appender.MILTER.policies.time.modulate = true | ||
appender.MILTER.strategy.type = DefaultRolloverStrategy | ||
|
||
logger.milter.name = zimbra.milter | ||
logger.milter.level = info,MILTER | ||
logger.milter.additivity = false | ||
logger.milter.appenderRef.MILTER.ref = milterFile | ||
|
||
logger.security.name = zimbra.security | ||
logger.security.level = info,MILTER | ||
logger.security.additivity = false | ||
|
||
rootLogger=info,MILTER | ||
rootLogger.appenderRef.MILTER.ref = milterFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.