OSGI Fragment for logging not working [message #1809485] |
Tue, 16 July 2019 18:26 |
shruthi nadig 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
|
|
|
Powered by
FUDForum. Page generated in 0.03418 seconds