Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.51 KB

README.md

File metadata and controls

48 lines (31 loc) · 1.51 KB

Duct Logging Module Build Status

A Duct module that adds logging to a configuration, using the logger.simple library.

This current version is experimental and will only work with the new duct.main tool. The artifact group name has been changed to prevent accidental upgrades.

Installation

Add the following dependency to your deps.edn file:

org.duct-framework/module.logging {:mvn/version "0.6.5"}

Or to your Leiningen project file:

[org.duct-framework/module.logging "0.6.5"]

Usage

Add the :duct.module/logging key to your Duct configuration:

{:duct.module/logging {}}

This module uses the Integrant expand function to add the :duct.logger/simple logger to the configuration. It will configured differently depending on the active Integrant profile:

  • :repl - write all logs to "logs/repl.log" and :report level logs to STDOUT in brief
  • :test - write all logs to "logs/test.log"
  • :main - write all logs in full to STDOUT

License

Copyright © 2024 James Reeves

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.