Skip to main content



      Home
Home » Modeling » TMF (Xtext) » osgi logging fragment configuration not working(log4j logging fragment not working when deployed as a plugin)
osgi logging fragment configuration not working [message #1809497] Tue, 16 July 2019 19:14 Go to next message
Eclipse UserFriend
Hi All,
I am trying to create a fragment with below MANIFEST.MF file and log4j.properties file. I deployed the fragment and was trying to run other xtext based custom eclipse plugin which has the log4j log statements. I do not see the log statements on the eclipse plugin console even after the fragment plugin is being deployed and downloaded. Can someone suggest/advice where I am going wrong.
Thanks
Shruthi

MANIFEST.MF:
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


log4j.properties:

# 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
Re: osgi logging fragment configuration not working [message #1809586 is a reply to message #1809497] Thu, 18 July 2019 10:57 Go to previous messageGo to next message
Eclipse UserFriend
hi, did you do what is stated there: https://www.eclipse.org/forums/index.php/t/262891/

[Updated on: Thu, 18 July 2019 10:57] by Moderator

Re: osgi logging fragment configuration not working [message #1809612 is a reply to message #1809586] Thu, 18 July 2019 16:15 Go to previous messageGo to next message
Eclipse UserFriend
Hi Christian, Here is the problem I am facing..Below are the steps I followed:
1:Created a logging fragment "X"as above and download the fragment plugin by installing a new software option .
2:Now I have a project "Z" to run which uses another custom plugin "Y" which we have built. The custom plugin"Y" has log4j statements.
I would like to see the log statements present in Y when we run the project "Z" on console. Please help....
Re: osgi logging fragment configuration not working [message #1809621 is a reply to message #1809612] Thu, 18 July 2019 17:29 Go to previous message
Eclipse UserFriend
Sorry I have no idea on this.
Previous Topic:Exception serializing cross-references
Next Topic:No LSP suggestions when keywords are separate parser rules
Goto Forum:
  


Current Time: Sun Mar 16 16:36:52 EDT 2025

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

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

Back to the top