logging eclipse/osgi plugins


i am starting arise an obscure plugin (technically, an osgi plugin) initial problems i've run i can't seem control commons-logging cost i customarily would.



i've enclosed commons-logging package plugin dependencies, indeed, i record something (at info aloft severity) logged console. however, i can't seem record during any devaluate turn (such debug trace).



i have specified log4j.properties file, classpath (for runtime, only commons-logging package is) nonetheless zero settings properties record have any impact function logger.



here's log4j.properties file:



#  log4j logging levels, method dwindling highlight are:
# fatal, error, warn, info, debug, trace
#

# bottom logger option
log4j.rootlogger=error,stdout
#,logfile

# proceed record messages stdout
log4j.appender.stdout=org.apache.log4j.consoleappender
log4j.appender.stdout.target=system.out
log4j.appender.stdout.layout=org.apache.log4j.patternlayout
log4j.appender.stdout.layout.conversionpattern=%d{absolute} %5p %r (%l) %t%n - %m%n


what i need i indeed control cost logger?



here illustration cost messages, hopes formatting competence coincide default java.util.logging, yield hints someone:



oct 21, 2008 11:01:23 pm com.stottlerhenke.sentinel.client.activator start
severe: fatal_message
oct 21, 2008 11:01:23 pm com.stottlerhenke.sentinel.client.activator start
warning: warn_message
oct 21, 2008 11:01:23 pm com.stottlerhenke.sentinel.client.activator start
info: info_message


update:



i have attempted several combinations of:




  • org.osgi.service.log.logservice et al.







and i only debug, lower, turn messages seem i am controlling osgi manually prompt (which unreal i am developing). furthermore, i can't outcome any form logging settlement around several properties files. all i try pleasantness seems overridden an obscure setting.



i've also attempted putting several config files above libraries countless places, including plug-in fragments trustworthy particular libraries suggested , still, same outcome happens.



i've implemented tradition loglistener, traced whole route record summary (as good i know how, anyway) system.out.println's, debug messages are donation right adult until cost whatever underlying logging api i'm using, following disappear.



Comments

Popular posts from this blog

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?

grails record upload problems

how i emanate permitted url asp.net mvc?