deliveredtechnologies / rulebook

100% Java, Lambda Enabled, Lightweight Rules Engine with a Simple and Intuitive DSL
http://www.deliveredtechnologies.com
Apache License 2.0
717 stars 124 forks source link

SLF4J - Logging | Question #143

Closed Yjuq closed 5 years ago

Yjuq commented 6 years ago

Hey, you use intern the SLF4J Logging Framework right? How I can disable the Logging? I don't need the informations in my console - I have other things to output there.

Oh - and I get the following output for some reasons: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

I just added RuleBook on my pom.xml like it's described here -> https://github.com/rulebook-rules/rulebook#14-adding-rulebook-to-your-maven-project

That's on a scratch project. Idk if I does something wrong or it's just the eclipse m2e plugin.

Clayton7510 commented 5 years ago

SFL4J is just a common interface that works with several logging libraries. If you are using Log4j, just disable logs in Log4j config. If you are using Logback, disable logs in Logback config. This StackOverflow thread offers a decent explanation, IMO: https://stackoverflow.com/questions/2372056/how-to-turn-off-logging-from-slf4j

Clayton7510 commented 5 years ago

Closing due to lack of activity.