Logging ======= Beets implements a flexible logging solution and ships multiple built-in modes. You can select a mode from the command line for quick control, or define and customize modes in the configuration file for more advanced setups. Use the ``--logging `` option to select a logging mode for a single invocation of any beets command. For example, to run the import command in debug mode, you could do: .. code-block:: console beets --logging debug import music/ .. note:: The command-line option overrides any logging mode configured in the configuration file. If you want to persist a logging mode across multiple invocations of beets, you can define a mode in the configuration file. For example, to set the default logging mode to ``debug``, you could add the following to your configuration file: .. code-block:: yaml :caption: config.yaml logging: debug .. note:: Invalid logging modes will be ignored, and beets will fall back to the default mode. Built-in modes -------------- Beets ships with several built-in logging modes. The following table summarizes the available modes and their characteristics: .. conf:: legacy Replicates the logging behavior of beets versions prior to 3.0. Messages are emitted as plain text with minimal formatting. .. code-block:: console : TODO Add a real output .. conf:: verbose The default logging mode for ``beets>=v3.0.0``. This mode explains what beets is doing in a more explicit way than ``legacy``, including key decisions such as matching, tagging, and file operations, without exposing full internal debug information. .. code-block:: console [] : TODO Add a real output It provides more insight into what beets is doing while keeping output concise enough for everyday use. .. conf:: quiet Suppresses informational output and only displays warnings and errors. Useful for scripts or automated workflows where only warnings and errors should be displayed. .. code-block:: console [] : TODO Add a real output .. conf:: debug Enables verbose diagnostic logging for both core functionality and plugins. This mode includes timestamps, log levels, and logger names, making it useful for debugging and development. .. code-block:: console