log4j


Log4j logging stops intermittently


We're experiencing some stoppages on our log4j(v1.2.8) INFO logs. We're using a WebSphere(8.5.5) clustered server(vertical) with 3 members that runs on a single machine(UNIX). Stoppage is random; no specific file size, time or when about to rollover
We've first suspected that is a volume related problem as we've tested before on a lower volumed server the problem doesn't occur. I've later tested overloading both servers but I could not replicate the problem.
Average daily production is 175,000 INFO lines. A workaround is available by just changing the timestamp of the log files to resume logging.
Already looked into the suggested fix on Log4j suddenly stops logging but nothing seemed to work. I'm hoping I could get some advise on were to look. Thank you.
log4j.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<root>
<priority value="INFO" />
<appender-ref ref="TEST" />
</root>
<appender name="TEST" class="org.apache.log4j.RollingFileAppender">
<param name="encoding" value="UTF-8" />
<param name="file" value="$test/directory/logs/test${com.test.log.server.name}.log" />
<param name="MaxFileSize" value="10000KB" />
<param name="MaxBackupIndex" value="50" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ISO8601} %-5p [%t] [%-12X{username}] [%-12X{servlet}] [%c{1}] %m%n" />
</layout>
</appender>
<appender name="console" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%-5p %c{1} - %m%n" />
</layout>
</appender>
</log4j:configuration>
The value of ${com.test.log.server.name} is declared in WebSphere JVM custom properties on each application server.
Any help would be greatly appreciated.

Related Links

How to configure logging with lift on jetty
Configuring Apache's Chainsaw to view text log files, other than XML
Nixing screen output with log4j
distributed logging: JMS and log4j?
Logger and Appender in log4j
log4j: Risk when making different EJBs on the same container write their logs to the same .log file
How to use AsyncAppender in log4j?
log4j disable rolling create files based on size
Log4j, get env. variable in Appender
Application log messages redirected to server.out with log4j and Weblogic nodemanager
Log4j viewer that allows multiple log files to be interwoven together
Overriding the logging methods (logger.warn) in slf4j
How can I make log4j reopen log files periodically (logrotate)
Chainsaw log format pattern syntax
JBoss 7.1 logging is not working
log4j fileappender doesn't switch to the new file when logrotate rotates the log file

Categories

HOME
ibm-bluemix
openstack
hp-exstream
webstorm
cvs
cmd
sharepoint-designer
angular-ui-bootstrap
gitpitch
imacros
row
windows-server-2012
caml
windows-7-x64
crystal-reports-2008
viewport
custom-wordpress-pages
tapestry
php-openssl
microsoft-r
android-widget
poltergeist
xacml
elasticsearch-net
srcset
tinymce-4
nameservers
gtrendsr
catch-all
azure-sql-database
accelerate-framework
android-kernel
bitbucket-pipelines
swift3.0.2
unobtrusive-validation
angularjs-factory
grid.mvc
core-plot
powershell-dsc
jvm-languages
apache-fop
powercli
integrity
mu
lowpass-filter
forever
python-cryptography
arrow-keys
spring-mongodb
redundancy
azure-sdk
moveit
qgraphicsview
dataview
independentsoft
nsight
unity5.2.3
proj4js
c++03
codeigniter-url
comexception
mysql-error-1062
kgdb
meteor-velocity
gnu-smalltalk
farseer
jsctypes
gridfs
runtime.exec
google-cloud-save
opcache
excel-2003
padarn
drools-planner
robotics-studio
tinn-r
jquery-knob
cisco-jtapi
funscript
datawindow
armcc
ticoredatasync
coercion
appendto
floating
telerik-scheduler
digest-authentication
getresponsestream
spec#
grid-system
3gp

Resources

Encrypt Message