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

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Please see the README on GitHub at

[Skip to Readme]


Change log None available
Dependencies aeson, base-noprelude (>=4.7 && <5), co-log-core, fmt, loot-prelude, 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-20T11:50:14Z



Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

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:

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 by Serokell. We love open source software. See which services we provide and drop us a line if you are interested.