co-log-sys: Syslog implementation on top of 'co-log-core'

[ library, logging, mpl ] [ Propose Tags ]
Versions [RSS],
Dependencies aeson, base (>=4.7 && <5), co-log-core, fmt, microlens, monad-control, mtl, network, universum, unix [details]
License MPL-2.0
Copyright 2018 Serokell
Author Serokell
Maintainer Serokell <>
Category Logging
Home page
Bug tracker
Source repo head: git clone
Uploaded by pasqu4le at 2018-11-21T18:11:03Z
Downloads 1136 total (5 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-11-21 [all 1 reports]

Readme for co-log-sys-

[back to package description]


This is a logging library based on co-log-core that implements a syslog backend.

For more info about how co-log works we advise you to read its presentation blogpost.

NOTE: It's somewhat opinionated in that:

  • it uses the fmt library for formatting
  • uses universum as a Prelude alternative

Example of usage

This is a simple example using the withLogMessageSyslog function:

example :: IO ()
example = withLogMessageSyslog basicSyslogConfig $ \logMessageSyslog -> do
    let logMessageStdout = cmap fmtMessageFlat logTextStdout
        logAction = logMessageSyslog <> logMessageStdout
    unLogAction logAction $ Message Emergency "NOTICE ME HERE"
    basicSyslogConfig = SyslogConfig
        { collector = AutoLocal
        , facility = User
        , appName = "example"


If you'd like to contribute or file a Bug Report, please read our Contributors Guide.


MPL 2.0

About Serokell

co-log-sys is maintained and funded with ❤️ by Serokell. The names and logo for Serokell are trademark of Serokell OÜ.

We love open source software! See our other projects or hire us to design, develop and grow your idea!