co-log-polysemy-formatting-0.1.1.0: A Polysemy logging effect for high quality (unstructured) logs.

Colog.Polysemy.Formatting.LogEnv

Description

Synopsis

# Documentation

data LogEnv Source #

A datatype to contain the logging environment: whether to use color output (if supported by the terminal), and the timezone to stamp messages in.

Constructors

 LogEnv UseColor TimeZone

Create a LogEnv suitable for the given handle. If the output is an interactive terminal which supports color, then the output will be in color. If not then the output will be plain text without color. The timezone used will be that of the current machine.