Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.06 KB

File metadata and controls

36 lines (29 loc) · 1.06 KB

Quiet SLF4J logger warnings

It is not antq’s place to specify a logger, so depending our your project, you may see the following messages when antq is run:

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.

You can avoid these message by specifying a logger.

Add the nop logger to suppress all logging output:

org.slf4j/slf4j-nop {:mvn/version "RELEASE"}

Or add the simple logger that will log to stdout:

org.slf4j/slf4j-simple {:mvn/version "RELEASE"}

This logger dependency should be added under the context which antq runs, for example for deps.edn this would look like:

{
 :aliases
 {:outdated {:deps {org.slf4j/slf4j-simple {:mvn/version "RELEASE"}
                    com.github.liquidz/antq {:mvn/version "RELEASE"}}
             :main-opts ["-m" "antq.core"]}}
}