Loggers

Description

The loggers configuration parameter allows you to override MigrateDB’s logging auto-detection and specify an exact logger, or comma-separated list of loggers, you wish to use. This can be useful when a dependency comes with a logger you do not wish to use.

Valid Options

  • auto - Auto detect the logger (default behavior)
  • console - Use stdout/stderr (only available when using CLI)
  • slf4j2 - Use the slf4j2 logger
  • apache-commons - Use the Apache Commons logger

Alternatively you can provide the fully qualified class name for any other logger to use that.

Default

auto

Usage

Command line

./migratedb -loggers=auto

Configuration File

migratedb.loggers=auto

Environment Variable

MIGRATEDB_LOGGERS=auto

API

MigrateDb.configure()
    .loggers("auto")
    .load()