beryx / text-io

A library for creating interactive console applications in Java
http://text-io.beryx.org/
Apache License 2.0
343 stars 45 forks source link

Suggestion logger #14

Closed gesteves91 closed 6 years ago

gesteves91 commented 6 years ago

I think it would be awesome to have a function allowing change the logger from debug to any other mode. For example, I would like to change the standard debug mode to something like error or even off.

Thanks,

siordache commented 6 years ago

You can configure the logging levels according to the logging library you use. For example, the text-io-demo app uses logback and suppresses by default all logging. You can tweak the logback.xml to display Text-IO logging messages by setting the level of org.beryx.textio appropriately (as shown in the commented section of the file).

gesteves91 commented 6 years ago

Thanks for the suggestion @siordache