Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Proposals » OSGi Enterprise Tools » log4j properties of bundle(I want to store my bundle log files in folder. i added the file appender properties in emulator log4j properties but i want to separate log files related to my wire component)
log4j properties of bundle [message #1794405] Thu, 30 August 2018 11:11
ganesh boddu is currently offline ganesh bodduFriend
Messages: 1
Registered: August 2018
Junior Member
I want to store my bundle log files in folder. i added the file appender properties in emulator log4j properties but i want to separate log files related to my wire component.

i added the below log4j code

#--------------changes for file appender----------

# set the log level for these components
log4j.logger.com.endeca=INFO
log4j.logger.com.endeca.itl.web.metrics=INFO

# add a ConsoleAppender to the logger stdout to write to the console
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# use a simple message format
log4j.appender.stdout.layout.ConversionPattern=%m%n

# add a FileAppender to the logger fout
log4j.appender.fout=org.apache.log4j.FileAppender
# create a log file
log4j.appender.fout.File=home/test.log
log4j.appender.fout.layout=org.apache.log4j.PatternLayout
# use a more detailed message pattern
log4j.appender.fout.layout.ConversionPattern=%p\t%d{ISO8601}\t%r\t%c\t[%t]\t%m%n
Previous Topic:Eclipse not running Activator from latest installed plugin.
Next Topic:exception while starting bundle "org.eclipse.gemini.web.tomcat_1.1.0.RELEASE"
Goto Forum:
  


Current Time: Mon Dec 02 08:08:05 GMT 2024

Powered by FUDForum. Page generated in 0.04271 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top