commit | faea754d39248d76cdd1806414f8a8c171b2049b | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Sat Dec 24 01:21:03 2016 +0100 |
committer | Harald Welte <laforge@gnumonks.org> | Sat Dec 24 01:21:03 2016 +0100 |
tree | 23a9e0bdb2cad9152f5cada3bf765b775e8dd62c | |
parent | 2c36375f5bbbaa1ccdb587f97ced6e4dd7562ec3 [diff] |
re-structure the LOG dispatcher we now have a nice structure for dispatching log messages to various handlers, each self-contained. As an added benefit, we remove the need to manually enable all the various log codes, as we simply auto-generate the default config from all the message types we support. Furthermore, we reduce computational complexity by avoiding linear iteration over the array of registered log handlers.