on master help sign in
Changed logger format
d25775aiko
denis/src/Server/Logger.hs+1−1
@@ -49,7 +49,7 @@ mkWaiLogger buff = let
49 settings = def {
49 settings = def {
50 -- outputFormat = CustomOutputFormatWithDetails (\ date req _ _ tDiff bss bldr ->
50 -- outputFormat = CustomOutputFormatWithDetails (\ date req _ _ tDiff bss bldr ->
51 -- FL.toLogStr (show date) <> (FL.toLogStr . unpack $ fold bss))
51 -- FL.toLogStr (show date) <> (FL.toLogStr . unpack $ fold bss))
52− outputFormat = Detailed False,
52+ outputFormat = Apache FromHeader,
53 destination = Callback (atomically . modifyTVar buff . flip insertIntoCyclicBuffer . FL.fromLogStr)
53 destination = Callback (atomically . modifyTVar buff . flip insertIntoCyclicBuffer . FL.fromLogStr)
54 }
54 }
55 in mkRequestLogger settings
55 in mkRequestLogger settings