Sha256: d6ccf4b71acfe97abbe0144e9d6f48c568fbff9f749bfdc59f81d882642911bf

Contents?: true

Size: 1.91 KB

Versions: 62

Compression:

Stored size: 1.91 KB

Contents

<%
  @path = "#{rubber_env.zookeeper_install_dir}/conf/log4j.properties"
  @post = "mkdir -p #{File.dirname rubber_env.zookeeper_log_file}"
%>
#
# ZooKeeper Logging Configuration
#

# Format is "<default threshold> (, <appender>)+

log4j.rootLogger=DEBUG, CONSOLE, ROLLINGFILE

# DEFAULT: console appender only
# log4j.rootLogger=INFO, CONSOLE

# Example with rolling log file
# log4j.rootLogger=DEBUG, CONSOLE, ROLLINGFILE

# Example with rolling log file and tracing
#log4j.rootLogger=TRACE, CONSOLE, ROLLINGFILE, TRACEFILE

#
# Log INFO level and above messages to the console
#
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.Threshold=INFO
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%d{ISO8601} - %-5p [%t:%C{1}@%L] - %m%n

#
# Add ROLLINGFILE to rootLogger to get log file output
#    Log DEBUG level and above messages to a log file
log4j.appender.ROLLINGFILE=org.apache.log4j.RollingFileAppender
log4j.appender.ROLLINGFILE.Threshold=DEBUG
log4j.appender.ROLLINGFILE.File=<%= rubber_env.zookeeper_log_file %>

# Max log file size of 10MB
log4j.appender.ROLLINGFILE.MaxFileSize=10MB
# uncomment the next line to limit number of backup files
#log4j.appender.ROLLINGFILE.MaxBackupIndex=10

log4j.appender.ROLLINGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.ROLLINGFILE.layout.ConversionPattern=%d{ISO8601} - %-5p [%t:%C{1}@%L] - %m%n


#
# Add TRACEFILE to rootLogger to get log file output
#    Log DEBUG level and above messages to a log file
log4j.appender.TRACEFILE=org.apache.log4j.FileAppender
log4j.appender.TRACEFILE.Threshold=TRACE
log4j.appender.TRACEFILE.File=<%= rubber_env.zookeeper_log_file.gsub(/.log$/, "_trace.log") %>

log4j.appender.TRACEFILE.layout=org.apache.log4j.PatternLayout
### Notice we are including log4j's NDC here (%x)
log4j.appender.TRACEFILE.layout.ConversionPattern=%d{ISO8601} - %-5p [%t:%C{1}@%L][%x] - %m%n

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
rubber-2.5.0 templates/zookeeper/config/rubber/role/zookeeper/log4j.properties
rubber-2.4.2 templates/zookeeper/config/rubber/role/zookeeper/log4j.properties
rubber-2.4.1 templates/zookeeper/config/rubber/role/zookeeper/log4j.properties
rubber-2.4.0 templates/zookeeper/config/rubber/role/zookeeper/log4j.properties
rubber-2.3.1 templates/zookeeper/config/rubber/role/zookeeper/log4j.properties
rubber-2.3.0 templates/zookeeper/config/rubber/role/zookeeper/log4j.properties
rubber-2.2.4 templates/zookeeper/config/rubber/role/zookeeper/log4j.properties
rubber-2.2.3 templates/zookeeper/config/rubber/role/zookeeper/log4j.properties
rubber-2.2.2 templates/zookeeper/config/rubber/role/zookeeper/log4j.properties
rubber-2.2.1 templates/zookeeper/config/rubber/role/zookeeper/log4j.properties
rubber-2.2.0 templates/zookeeper/config/rubber/role/zookeeper/log4j.properties
rubber-2.1.2 templates/zookeeper/config/rubber/role/zookeeper/log4j.properties
rubber-2.1.1 templates/zookeeper/config/rubber/role/zookeeper/log4j.properties
rubber-2.1.0 templates/zookeeper/config/rubber/role/zookeeper/log4j.properties
rubber-2.0.8 templates/zookeeper/config/rubber/role/zookeeper/log4j.properties
rubber-2.0.7 templates/zookeeper/config/rubber/role/zookeeper/log4j.properties
rubber-2.0.6 templates/zookeeper/config/rubber/role/zookeeper/log4j.properties
rubber-2.0.5 templates/zookeeper/config/rubber/role/zookeeper/log4j.properties
rubber-2.0.4 templates/zookeeper/config/rubber/role/zookeeper/log4j.properties
rubber-2.0.3 templates/zookeeper/config/rubber/role/zookeeper/log4j.properties