[logback-user] get rid of noise and JAnsi error

gokturk mavus gokturkmavus at gmail.com
Mon Aug 18 15:21:21 CEST 2014


How to get rid of those messages, all of them?

I have installed JAnsi 1.8, 1.6, 1.11 but same messages

Platform; windows 7, eclipse

My configuration file

<configuration>

	<appender 	name ="Console"
				class="ch.qos.logback.core.ConsoleAppender">
				
				<encoder>	
					<charset>	UTF-8	</charset>
					<pattern>%-5level [%thread] %class{0}.%method at line %line --
%message%n%ex</pattern>
				</encoder>
	</appender>

	<root	level="DEBUG">
			<appender-ref	ref="Console" />
	</root>
	
</configuration>


16:17:34,050 |-INFO in ch.qos.logback.classic.LoggerContext[default] -
Could NOT find resource [logback.groovy]
16:17:34,050 |-INFO in ch.qos.logback.classic.LoggerContext[default] -
Found resource [logback-test.xml] at [file:...
/execBin/logback-test.xml]
16:17:34,122 |-INFO in
ch.qos.logback.classic.joran.action.ConfigurationAction - debug
attribute not set
16:17:34,133 |-INFO in ch.qos.logback.core.joran.action.AppenderAction
- About to instantiate appender of type
[ch.qos.logback.core.ConsoleAppender]
16:17:34,142 |-INFO in ch.qos.logback.core.joran.action.AppenderAction
- Naming appender as [ConsoleAppender]
16:17:34,167 |-INFO in
ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming
default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for
[encoder] property
16:17:34,216 |-INFO in
ch.qos.logback.core.ConsoleAppender[ConsoleAppender] - Enabling JANSI
WindowsAnsiOutputStream for the console.
16:17:34,217 |-WARN in
ch.qos.logback.core.ConsoleAppender[ConsoleAppender] - Failed to
create WindowsAnsiOutputStream. Falling back on the default stream.
ch.qos.logback.core.util.DynamicClassLoadingException: Failed to
instantiate type org.fusesource.jansi.WindowsAnsiOutputStream
	at ch.qos.logback.core.util.DynamicClassLoadingException: Failed to
instantiate type org.fusesource.jansi.WindowsAnsiOutputStream
	at 	at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:73)
	at 	at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:42)
	at 	at ch.qos.logback.core.ConsoleAppender.getTargetStreamForWindows(ConsoleAppender.java:94)
	at 	at ch.qos.logback.core.ConsoleAppender.start(ConsoleAppender.java:85)
	at 	at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:96)
	at 	at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:317)
	at 	at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:196)
	at 	at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:182)
	at 	at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62)
	at 	at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:149)
	at 	at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:135)
	at 	at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:99)
	at 	at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:49)
	at 	at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
	at 	at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:150)
	at 	at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
	at 	at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
	at 	at org.slf4j.LoggerFactory.bind(LoggerFactory.java:129)
	at 	at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:108)
	at 	at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:302)
	at 	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:276)
	at 	at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:288)
       ...
	at 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at 	at java.lang.reflect.Method.invoke(Unknown Source)
	at 	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
	at 	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at 	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
	at 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
	at 	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
	at 	at org.junit.runners.Suite.runChild(Suite.java:128)
	at 	at org.junit.runners.Suite.runChild(Suite.java:24)
	at 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
	at 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
	at 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
	at 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
	at 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
	at 	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
	at 	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
	at 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
	at 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
	at 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
	at 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.ClassNotFoundException:
org.fusesource.jansi.WindowsAnsiOutputStream
	at 	at java.net.URLClassLoader$1.run(Unknown Source)
	at 	at java.net.URLClassLoader$1.run(Unknown Source)
	at 	at java.security.AccessController.doPrivileged(Native Method)
	at 	at java.net.URLClassLoader.findClass(Unknown Source)
	at 	at java.lang.ClassLoader.loadClass(Unknown Source)
	at 	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at 	at java.lang.ClassLoader.loadClass(Unknown Source)
	at 	at ch.qos.logback.core.util.OptionHelper.instantiateByClassNameAndParameter(OptionHelper.java:60)
	at 	... 46 common frames omitted
16:17:34,217 |-INFO in
ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level
of ROOT logger to DEBUG
16:17:34,217 |-INFO in
ch.qos.logback.core.joran.action.AppenderRefAction - Attaching
appender named [ConsoleAppender] to Logger[ROOT]
16:17:34,218 |-INFO in
ch.qos.logback.classic.joran.action.ConfigurationAction - End of
configuration.
16:17:34,219 |-INFO in
ch.qos.logback.classic.joran.JoranConfigurator at 125a3fa0 - Registering
current configuration as safe fallback point


More information about the Logback-user mailing list