Help with filtering console output?

21 views
Skip to first unread message

JaxXx

unread,
Jun 23, 2016, 1:22:54 AM6/23/16
to pircbotx
So, I've never used slf4j, and as such, never really used any of the logging systems it allows me to use.

Could someone point me to a resource that would show me how to tweak what the default output looks like?

I don't particularly want all of the DEBUG lines that are shown, but I'm unsure of how to actually configure the logging that it does by default when connected to twitch.

Essentially I want to keep the INFO lines that show what InputParser is actually dealing with, but I can't seem to find any sort of documentation on how to alter the default logging that occurs when slf4j + logback is added to the project.

Jan Kazemier

unread,
Jun 23, 2016, 2:18:03 AM6/23/16
to pirc...@googlegroups.com
Configuration depends on which implementation of slf4j is used; slf4j only specifies the interface; in this case the implementation is logback. For logback configuration, you need to add a logback.xml to your classpath (e.g. in the root of the src directory). You can have several appenders which write to console, file or something else, depending on configuration.

For more specifics look around for example logback.xml files, for example this one:
https://groups.google.com/forum/#!topic/pircbotx/IsG5_QoXDFU

Kind regards,
Jan

--
You received this message because you are subscribed to the Google Groups "pircbotx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pircbotx+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages