Skip to content

Commit 4f3a03d

Browse files
authoredJul 28, 2021
Add files via upload
1 parent e127d53 commit 4f3a03d

File tree

1 file changed

+102
-0
lines changed

1 file changed

+102
-0
lines changed
 

‎log4j.properties

+102
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# *******************************************************
2+
# Configure loggers to log the renew debug informations
3+
# Add new lines to define new loggers for each new
4+
# package/class which should use the log4j framework.
5+
# The difined RenewLog Appender can be reused for
6+
# new loggers. There is no root logger
7+
# defined, because this would also log the simulation
8+
# trace output. To separate the simulation trace output
9+
# from the java debug messages, there should be separate
10+
# loggers for each used java package.
11+
# *******************************************************
12+
13+
log4j.logger.de=INFO, RenewLog, RenewConLog
14+
log4j.logger.CH=INFO, RenewLog, RenewConLog
15+
log4j.logger.jamr=INFO, RenewLog, RenewConLog
16+
log4j.logger.net=INFO, RenewLog, RenewConLog
17+
18+
# define a RollingFileAppender to write the log messages to
19+
# a log file.
20+
log4j.appender.RenewLog=org.apache.log4j.RollingFileAppender
21+
# set the name and location of the log file
22+
# The Java Property logs.home could be used to specify
23+
# the file name.
24+
# If the property logs.home was not manually set, the property
25+
# holds by default the path to a ${user.home}/renewlogs
26+
# directory in the users home directory.
27+
# The property "${user.home}" and all other defined
28+
# java system properties could be used to define
29+
# the log file locations.
30+
log4j.appender.RenewLog.File=${logs.home}/renew.log
31+
# set the maximal log file size
32+
log4j.appender.RenewLog.MaxFileSize=250KB
33+
# set the number of backup files
34+
log4j.appender.RenewLog.MaxBackupIndex=0
35+
# define the log message output format
36+
log4j.appender.RenewLog.layout=org.apache.log4j.PatternLayout
37+
#log4j.appender.RenewLog.layout=de.renew.logging.PatternLayout
38+
log4j.appender.RenewLog.layout.ConversionPattern=%d %p %c - %m%n
39+
40+
# define a console appender for error output
41+
log4j.appender.RenewConLog=org.apache.log4j.ConsoleAppender
42+
# Uncomment the following line if the console appender should only print error messages
43+
#log4j.appender.RenewConLog.threshold=WARN
44+
log4j.appender.RenewConLog.layout=org.apache.log4j.PatternLayout
45+
#log4j.appender.RenewConLog.layout=de.renew.logging.PatternLayout
46+
log4j.appender.RenewConLog.layout.ConversionPattern=%p: %m%n
47+
48+
49+
# *******************************************************
50+
# Configure a logger for the simulation trace output.
51+
# To log simulation traces define loggers with the
52+
# following name pattern:
53+
# simulation.[net name].[place/transition name] where
54+
# [net name] and [place/transition name] must be replaced
55+
# with the name of the net or the name of the net element
56+
# for with the messages should be logged.
57+
# The defined logger logs all simulation trace messages
58+
# to a file simulation.log in the logs directory given
59+
# by the logs.home property.
60+
# *******************************************************
61+
62+
log4j.logger.simulation=DEBUG, SimFileLog
63+
# replace the previous line with the following line, if
64+
# the simulation traces should also be printed in the
65+
# console window.
66+
#log4j.logger.simulation=DEBUG, SimFileLog, SimConLog
67+
68+
# define a console appender for the simulation trace output
69+
log4j.appender.SimConLog=org.apache.log4j.ConsoleAppender
70+
log4j.appender.SimConLog.layout=org.apache.log4j.PatternLayout
71+
#log4j.appender.SimConLog.layout=de.renew.logging.PatternLayout
72+
log4j.appender.SimConLog.layout.ConversionPattern= %m%n
73+
74+
# define a RollingFileAppender to write the simulation trace
75+
# to a log file
76+
log4j.appender.SimFileLog=org.apache.log4j.RollingFileAppender
77+
log4j.appender.SimFileLog.File=/simulation.log
78+
log4j.appender.SimFileLog.MaxFileSize=500000KB
79+
log4j.appender.SimFileLog.MaxBackupIndex=0
80+
log4j.appender.SimFileLog.layout=org.apache.log4j.PatternLayout
81+
#log4j.appender.SimFileLog.layout=de.renew.logging.PatternLayout
82+
log4j.appender.SimFileLog.layout.ConversionPattern= %m%n
83+
84+
# *******************************************************
85+
# Configure a logger for MXMLLogging.
86+
# Required for Bachelor Thesis 8sangine
87+
# uncomment if you want to use the MXMLLoggingplugin
88+
# *******************************************************
89+
#log4j.appender.MxmlFileLog=org.apache.log4j.FileAppender
90+
#log4j.appender.MxmlFileLog.File=${logs.home}/WorkflowLog.txt
91+
#log4j.appender.MxmlFileLog.append=true
92+
#log4j.appender.MxmlFileLog.layout=de.renew.mxml.MXMLLayout
93+
#log4j.logger.de.renew.mxml.mxmllogger=INFO, MxmlFileLog
94+
95+
# *******************************************************
96+
# GUI Logging
97+
# *******************************************************
98+
#log4j.logger.GuiLogger=TRACE, GuiLog
99+
#log4j.appender.GuiLog=org.apache.log4j.FileAppender
100+
#log4j.appender.GuiLog.File=${logs.home}/GuiLog.txt
101+
#log4j.appender.GuiLog.layout=org.apache.log4j.PatternLayout
102+
#log4j.appender.GuiLog.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS};%m%n

0 commit comments

Comments
 (0)
Please sign in to comment.