… | |
… | |
6 | |
6 | |
7 | Simple uses: |
7 | Simple uses: |
8 | |
8 | |
9 | use AnyEvent; |
9 | use AnyEvent; |
10 | |
10 | |
11 | AE::log fatal => "no config found, cannot continue"; # never returns |
11 | AE::log fatal => "No config found, cannot continue!"; # never returns |
12 | AE::log alert => "the battery died"; |
12 | AE::log alert => "The battery died!"; |
13 | AE::log crit => "the battery temperature is too hot"; |
13 | AE::log crit => "The battery temperature is too hot!"; |
14 | AE::log error => "division by zero attempted"; |
14 | AE::log error => "Division by zero attempted."; |
15 | AE::log warn => "couldn't delete the file"; |
15 | AE::log warn => "Couldn't delete the file."; |
16 | AE::log note => "wanted to create config, but config already exists"; |
16 | AE::log note => "Wanted to create config, but config already exists."; |
17 | AE::log info => "file soandso successfully deleted"; |
17 | AE::log info => "File soandso successfully deleted."; |
18 | AE::log debug => "the function returned 3"; |
18 | AE::log debug => "the function returned 3"; |
19 | AE::log trace => "going to call function abc"; |
19 | AE::log trace => "going to call function abc"; |
20 | |
20 | |
21 | Log level overview: |
21 | Log level overview: |
22 | |
22 | |