/Autotagical/Config/With/LogTo/file.dhall
Copy path to clipboardConfig.With.LogTo.file
Default Behavior
By default, autotagical
writes logs to stdout
.
Option Behavior
Given a (relative or absolute) path to a file, this option writes log messages to that file. Note that this will append to the file if the file already exists, so be careful where you point it.
Internally, this uses Control.Logging
(and by extension System.Log.FastLogger
).
Usage
let Autotagical = https://siriusstarr.github.io/autotagical/dhall/package.dhall
in Autotagical::{...} ⫽ Autotagical.Config.With.LogTo.file "autotagical.log"
Source
let LogDestination =
../../../Internal/Logging/LogDestination sha256:47393d4c5bdc46697670d9b6d4c73c4875c1df2f2cf2f1cbe68b2afe03c0816f
? ../../../Internal/Logging/LogDestination
let file
: Text → { logDestination : LogDestination }
= λ(path : Text) → { logDestination = LogDestination.File path }
in file