Popularity
8.7
Growing
Activity
0.0
Stable
2
36
0

Monthly Downloads: 9
Programming language: Haskell
License: Mozilla Public License 2.0
Tags: Logging     Co    

co-log-sys alternatives and similar packages

Based on the "co" category.
Alternatively, view co-log-sys alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of co-log-sys or a related project?

Add another 'co' Package

README

co-log-sys

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"
  where
    basicSyslogConfig = SyslogConfig
        { collector = AutoLocal
        , facility = User
        , appName = "example"
        }

Contributions

If you'd like to contribute or file a Bug Report, please read our [Contributors Guide](docs/CONTRIBUTING.md).

License

[MPL 2.0](LICENSE.md)

About Serokell

co-log-sys is maintained and funded with :heart: 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!


*Note that all licence references and agreements mentioned in the co-log-sys README section above are relevant to that project's source code only.