Closed gi-yt closed 1 year ago
Hello @gi-yt
Libasciidoc uses github.com/sirupsen/logrus to log messages in the console, so you may want to try something like logrus.SetLevel(logrus.ErrorLevel)
, provided this does not has side effect within your application or other modules it depends on.
Otherwise, I should probably create a specific logger with logrus.New()
and pass it as an argument of the funcs, so we could have a custom log level for libasciidoc without interfering with the rest of the application 🤔
Yup! That fixed it. The program uses the standard log library so the conflict isn't an issue..
Yup! That fixed it. The program uses the standard log library so the conflict isn't an issue..
great! I'm glad it worked for you this way!
when i use libasciidoc like a normal library, it logs to the console with information (info level) related to the conversion. Is there a way to make it not print it to the console?
This code filled my console with messages like this: