logsink alternatives and similar packages
Based on the "System" category.
Alternatively, view logsink alternatives based on common mentions on social networks and blogs.
-
taffybar
A gtk based status bar for tiling window managers such as XMonad -
ghc-hotswap
Example code for how we swap compiled code within a running Haskell process. -
nix-deploy
Deploy software or an entire NixOS system configuration to another NixOS system -
optparse-generic
Auto-generate a command-line parser for your datatype -
hapistrano
Deploy tool for Haskell applications, like Capistrano for Rails -
directory
Platform-independent library for basic file system operations -
typed-process
Alternative API for processes, featuring more type safety -
system-fileio
Contains the system-filepath and system-fileio packages -
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 -
openssh-github-keys
Control SSH access to your servers via GitHub teams -
plugins
Dynamic linking and runtime evaluation of Haskell, and C, including dependency chasing and package resolution. -
directory-contents
Recursively build a tree of directory contents, avoiding symlink cycles
Clean code begins in your IDE with SonarLint
Do you think we are missing an alternative of logsink or a related project?
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."