syslog.lcf

来自「java日志读写」· LCF 代码 · 共 21 行

LCF
21
字号

# ------------------------------------------------+
# Set the host variable to match your environment |
# ------------------------------------------------+
host=torino.qos.ch


log4j.rootCategory=DEBUG, A1

log4j.appender.A1=org.apache.log4j.net.SyslogAppender
log4j.appender.A1.SyslogHost=${host}

log4j.appender.A1.layout=org.apache.log4j.PatternLayout

# -----------------------------------------------------------------
# The ConversionPattern should be terminated with a "\n" instead of
# the usual "%n" as the syslog host is most probably a unix machine.
# -----------------------------------------------------------------
log4j.appender.A1.layout.ConversionPattern=%-5r %-5p [%t] %c{2} %x - %m\n

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?