File: logging.conf.sample

package info (click to toggle)
yade 2025.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,308 kB
  • sloc: cpp: 93,298; python: 50,409; sh: 577; makefile: 162
file content (38 lines) | stat: -rw-r--r-- 1,695 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# This is example logging configuration file for yade.
#
# Place it in ~/.yade/logging.conf if you want it to be loaded and watched for changes during execution as well.
#
# log4cxx homepage is http://logging.apache.org/log4cxx/
# of particular interest is instroduction (http://logging.apache.org/log4cxx/manual/Introduction.html)
# and pattern description (http://logging.apache.org/log4cxx/manual/classlog4cxx_1_1PatternLayout.html)
#

# Set root logger level to DEBUG, one appender for console and other to a file
log4j.rootLogger=DEBUG,console,logfile

log4j.appender.console=org.apache.log4j.ConsoleAppender
# A1 uses PatternLayout.
log4j.appender.console.layout=org.apache.log4j.PatternLayout
#log4j.appender.console.layout.ConversionPattern=%-4r %-5p %c %x - %m%n # this is the default
log4j.appender.console.layout.ConversionPattern=%-5p %-10c %m%n

# this appender creates logfile that is being rotated following a size criterion
# better would be to rotate it at every execution, but I am not sure if that exists in log4cxx...
log4j.appender.logfile=org.apache.log4j.RollingFileAppender
log4j.appender.logfile.File=/tmp/yade.log
log4j.appender.logfile.MaxFileSize=10MB
log4j.appender.logfile.MaxBackupIndex=1 # Keep one backup file
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%-5p %t %-10c %m%n


# Minimum level of messages you want to see
# Childs inherit from their parents, unless overridden explicitly, therefore
# the following disables DEBUG messages by default (everywhere)
log4j.logger.yade=INFO
# except for the classes where requested:
#log4j.logger.yade.Omega=DEBUG
log4j.logger.yade.DynLibManager=DEBUG