We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a15387 commit 51d8d1dCopy full SHA for 51d8d1d
example/Example.hs
@@ -26,10 +26,10 @@ main = do
26
withConsoleLogger Info $ withLabel ("logger", "console") run
27
28
-- log to a file
29
- withTempFile "." "logfile.log" $ \f h → do
+ withTempFile "." "logfile.log" $ \file h → do
30
hClose h
31
- withFileLogger f Info $ withLabel ("logger", "file") run
32
- readFile f >>= putStrLn
+ withFileLogger file Info $ withLabel ("logger", "file") run
+ readFile file >>= putStrLn
33
34
where
35
f = withLevel Debug $ logg Debug "debug f"
0 commit comments