siberian-fast-food / alogger

Simply the best logging framework for Erlang
Apache License 2.0
50 stars 16 forks source link

several flows with {mod,['_']} filter #16

Closed IgorKarymov closed 13 years ago

IgorKarymov commented 13 years ago

does not work as expected:

flows id filter priority loggers enabled --- ``` 2 {mod,['_']} {'=<',debug} [alog_disk_log] true 1 {mod,['_']} {'=<',debug} [alog_tty] true ```
2garryn commented 13 years ago

Bug is really seriously. This is problem with parsing of internal configuration which alog_parse_trans gets from alog_control. It is stupid and doesn't resolve some cases of config as needed. As result wrong function clauses in alog_if. I found out more cases of wrong behaviour. I am thinking on it.

2garryn commented 13 years ago

Fixed. Modules: alog_parse_trans alog_if_default.

Just one comment. if user has flows like this:

2 {mod,['_']} {'=<',debug} [alog_disklog] true 1 {mod,['']} {'=<',debug} [alog_tty, alog_disk_log] true

He gets two log messages in alog_disk_log. It is right behaviour.