Saturday, 29 January 2022

JanusGraph: Disable debug log

When I am running janusgraph application, I end up in lot of debug log messages, I resolved this issue by configuring logback.xml file in the application resources folder.

 

logback.xml

<configuration scan="true">


	<appender name="STDOUT"
		class="ch.qos.logback.core.ConsoleAppender">
		<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
			<level>ERROR</level>
		</filter>
		<encoder>
			<pattern>%-5level [%thread] %date{ISO8601} %F:%L - %msg%n</pattern>
		</encoder>
	</appender>


	<root level="ERROR">
		<appender-ref ref="STDOUT" />
	</root>

</configuration>

 

Reference

https://github.com/JanusGraph/janusgraph/blob/83c93fe717453ec31086ca1a208217a747ebd1a8/janusgraph-dist/src/assembly/static/cassandra/conf/logback.xml

 

  

Previous                                                 Next                                                 Home

No comments:

Post a Comment