1 USING: continuations io io.directories io.files.temp logging
2 logging.analysis logging.server math tools.test ;
5 : input-logging-test ( a b -- c ) + ;
7 \ input-logging-test NOTICE add-input-logging
9 : output-logging-test ( a b -- c ) + ;
11 \ output-logging-test DEBUG add-output-logging
13 : error-logging-test ( a b -- c ) / ;
15 \ error-logging-test ERROR add-error-logging
18 [ "logging-test" temp-file delete-tree ] ignore-errors
21 [ 4 ] [ 1 3 input-logging-test ] unit-test
23 [ 4 ] [ 1 3 output-logging-test ] unit-test
25 [ 4/3 ] [ 4 3 error-logging-test ] unit-test
27 [ f ] [ 1 0 error-logging-test ] unit-test
30 [ ] [ "logging-test" { "input-logging-test" } analyze-log-file ] unit-test