logsink alternatives and similar packages
Based on the "System" category.
Alternatively, view logsink alternatives based on common mentions on social networks and blogs.
-
ghc-hotswap
DISCONTINUED. Example code for how we swap compiled code within a running Haskell process. -
plugins
Dynamic linking and runtime evaluation of Haskell, and C, including dependency chasing and package resolution. -
language-puppet
A library to work with Puppet manifests, test them and eventually replace everything ruby. -
ascii-progress
A simple Haskell progress bar for the console. Heavily borrows from TJ Holowaychuk's Node.JS project
SaaSHub - Software Alternatives and Reviews
Do you think we are missing an alternative of logsink or a related project?
Popular Comparisons
README
logsink
logsink
is meant to be used in conjunction with
logging-facade
. To log
messages application code uses functions from System.Logging.Facade
.
logsink
itself is a backend for logging-facade
and allows to configure
logging behavior.
logsink
has built-in support for stderr
and syslog
. The following example
shows how to direct log messages to syslog
:
import qualified System.Logging.Facade as Log
import System.Logging.LogSink.Config
main :: IO ()
main = do
setupLogging [defaultSinkConfig { sinkConfigTarget = SysLog }]
Log.error "This is an error message."
You can also configure the message format. (See documentation of System.Logging.LogSink.Format
for allowed format directives.)
main2 :: IO ()
main2 = do
setupLogging [defaultSinkConfig { sinkConfigFormat = "{level} - {timestamp}: {message}" }]
Log.error "This is an error message."