Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » OSGI Fragment for logging not working(log4j logging fragment configuration not working)
OSGI Fragment for logging not working [message #1809485] Tue, 16 July 2019 18:26
shruthi nadig is currently offline shruthi nadigFriend
Messages: 7
Registered: July 2019
Junior Member
We are trying to create a logging fragment with a MANIFEST.MF and file as shown below.The fragment plugin is then deployed, but when we run other xtext based eclipse plugins, the log4j statements in them are not seen on the console. Can someone please guide/suggest what am I missing here..
Thanks In Advance

Manifest headers in MANIFEST.MF file:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Localization: fragment
Bundle-Vendor: VISA
Bundle-Version: 1.0.0.qualifier
Fragment-Host: org.apache.log4j;bundle-version="[1.2.15,1.2.16)"
Bundle-SymbolicName:; singleton:=true
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.8

and file in src folder looks like this:
# Root logger configuration. Don't change this.
log4j.rootLogger=DEBUG, stdout

# This appender will write to the stdout console
log4j.appender.stdout.layout.ConversionPattern=%-4r [%t] %-5p %35.35c %x - %X{module} %m%n

# Configure your log categories below:

Previous Topic:Eclipse3.5 update to Eclipse4.12, PerspectiveBarManager is invalid
Next Topic:P2 director - executable name
Goto Forum:

Current Time: Thu Apr 22 17:09:00 GMT 2021

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

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

Back to the top