documentation/Reference/Configuration/Flyway Namespace/Flyway Loggers Setting.md
Allows you to override Flyway's logging auto-detection and specify an exact logger, or comma-separated list of loggers, to use. This can be useful when a dependency comes with a logger you do not wish to use.
| Logger | Details | Ships with Flyway Command-line |
|---|---|---|
| auto | Auto detect the logger (default behavior) | Yes |
| console | Use stdout/stderr (only available when using CLI) | Yes |
| slf4j | Use the slf4j logger | Yes |
| log4j2 | Use the log4j2 logger | No |
| apache-commons | Use the Apache Commons logger | No |
Alternatively you can provide the fully qualified class name for any other logger to use that.
String array
["auto"]
If you are using Flyway within Java and have multiple instances of the Flyway object with different configurations, you must ensure they all have the same loggers configured. Other scenarios are unsupported.
This can't be configured via Flyway Desktop.
./flyway -loggers=auto
[flyway]
loggers = ["auto"]
flyway.loggers=auto
FLYWAY_LOGGERS=auto
Flyway.configure()
.loggers("auto")
.load()
flyway {
loggers = 'auto'
}
<configuration>
<loggers>auto</lockRetryCount>
</configuration>