Advertisement
NLinker

Concurrent logging test

Dec 19th, 2016
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- test concurrent logging
  2. mainL :: IO ()
  3. mainL = do
  4.   setupLogging [defaultSinkConfig { sinkConfigTarget = StdErr }]
  5.   mapM_ go ['a'..'z']
  6.   where
  7.   go c = forkIO $ do
  8.     forM_ [1..] $ \_ -> Log.debug $ replicate 80 c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement