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
Hi,
We are trying to create a logging fragment with a MANIFEST.MF and log4j.properties 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
Shruthi

Manifest headers in MANIFEST.MF file:

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

and log4j.properties 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=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%-4r [%t] %-5p %35.35c %x - %X{module} %m%n

# Configure your log categories below:
log4j.logger.org.eclipse.xtext=INFO
log4j.logger.org.eclipse.xtext.parsetree.reconstr=INFO

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


Current Time: Sun Dec 08 02:20:27 GMT 2019

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

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

Back to the top