mirror of
https://github.com/rasilon/ujetl.git
synced 2026-04-11 10:29:29 +00:00
Fix java version, and logging configs
This commit is contained in:
parent
751aec4b63
commit
07e97398af
5 changed files with 22 additions and 34 deletions
|
|
@ -1,28 +0,0 @@
|
|||
log4j.rootLogger=info, stdout, R, SYSLOG
|
||||
|
||||
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
||||
log4j.appender.stdout.Threshold=info
|
||||
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
||||
|
||||
# Pattern to output the caller's file name and line number.
|
||||
#log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) %d - %m%n
|
||||
log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} %-5p [%t] %c{2} %x - %m%n
|
||||
|
||||
log4j.appender.R=org.apache.log4j.RollingFileAppender
|
||||
log4j.appender.R.File=/tmp/DefaultCopyingApp.log
|
||||
|
||||
log4j.appender.R.MaxFileSize=100KB
|
||||
# Keep one backup file
|
||||
log4j.appender.R.MaxBackupIndex=1
|
||||
|
||||
log4j.appender.R.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.R.layout.ConversionPattern=%p %t %c %d - %m%n
|
||||
|
||||
|
||||
log4j.appender.SYSLOG=org.apache.log4j.net.SyslogAppender
|
||||
log4j.appender.SYSLOG.Threshold=info
|
||||
log4j.appender.SYSLOG.syslogHost=localhost
|
||||
log4j.appender.SYSLOG.Facility=LOCAL4
|
||||
log4j.appender.SYSLOG.layout=org.apache.log4j.PatternLayout
|
||||
log4j.appender.SYSLOG.layout.conversionPattern=%d{ISO8601} %-5p [%t] %c{2} %x - %m%n
|
||||
|
||||
13
install_extra/copying_defaults_log4j.xml
Normal file
13
install_extra/copying_defaults_log4j.xml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Configuration status="INFO">
|
||||
<Appenders>
|
||||
<Console name="Console" target="SYSTEM_OUT">
|
||||
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
|
||||
</Console>
|
||||
</Appenders>
|
||||
<Loggers>
|
||||
<Root level="INFO">
|
||||
<AppenderRef ref="Console"/>
|
||||
</Root>
|
||||
</Loggers>
|
||||
</Configuration>
|
||||
|
|
@ -12,11 +12,11 @@ then
|
|||
exit 2
|
||||
fi
|
||||
|
||||
LOG_PROPS=/etc/ujetl/copying_defaults_log4j.properties
|
||||
if [ -e "/etc/ujetl/${JOBNAME}_log4j.properties" ]
|
||||
LOG_PROPS=/etc/ujetl/copying_defaults_log4j.xml
|
||||
if [ -e "/etc/ujetl/${JOBNAME}_log4j.xml" ]
|
||||
then
|
||||
echo Using log config "/etc/ujetl/${JOBNAME}_log4j.properties"
|
||||
LOG_PROPS="/etc/ujetl/${JOBNAME}_log4j.properties"
|
||||
echo Using log config "/etc/ujetl/${JOBNAME}_log4j.xml"
|
||||
LOG_PROPS="/etc/ujetl/${JOBNAME}_log4j.xml"
|
||||
else
|
||||
echo Using default logging.
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue