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.
Goto Forum:
  


Current Time: Thu Nov 15 04:00:45 GMT 2018

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

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

Back to the top