Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 23:14 Go to next message
shruthi nadig is currently offline shruthi nadigFriend
Messages: 7
Registered: July 2019
Junior Member
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 14:57 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13116
Registered: July 2009
Senior Member
hi, did you do what is stated there: https://www.eclipse.org/forums/index.php/t/262891/

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Thu, 18 July 2019 14:57]

Report message to a moderator

Re: osgi logging fragment configuration not working [message #1809612 is a reply to message #1809586] Thu, 18 July 2019 20:15 Go to previous messageGo to next message
shruthi nadig is currently offline shruthi nadigFriend
Messages: 7
Registered: July 2019
Junior Member
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 21:29 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13116
Registered: July 2009
Senior Member
Sorry I have no idea on this.

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Exception serializing cross-references
Next Topic:No LSP suggestions when keywords are separate parser rules
Goto Forum:
  


Current Time: Sun Sep 15 12:53:27 GMT 2019

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

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

Back to the top