The functionality of our log system is changed by b88c91dd3d.

Weiyi Wang 2017-03-09 11:01:59 +02:00
parent a275baf533
commit 38d42610b8

@ -18,12 +18,9 @@ Otherwise, a complete list can be found in the source in [log.h](https://github.
## Log Filters ## Log Filters
To configure the log filter, edit the configuration file (either `qt-config.ini` or `sdl2-config.ini`) and change the `log_filter` setting. The filter string consists of a space-separated list of filter rules, each of the format `<class>:<level>`. `<class>` is a log class name, with subclasses separated using periods. A rule for a given class also affects all of its subclasses. `*` wildcards are allowed and can be used to apply a rule to all classes or to all subclasses of a class without affecting the parent class. `<level>` a severity level name which will be set as the minimum logging level of the matched classes. Rules are applied left to right, with later rules overriding previous ones in the sequence. To configure the log filter, edit the configuration file (either `qt-config.ini` or `sdl2-config.ini`) and change the `log_filter` setting. The filter string consists of a space-separated list of filter rules, each of the format `<class>:<level>`. `<class>` is a log class name, with subclasses separated using periods. `*` wildcards are allowed and can be used to apply a rule to all classes . `<level>` a severity level name which will be set as the minimum logging level of the matched classes. Rules are applied left to right, with later rules overriding previous ones in the sequence.
A few examples of filter rules: A few examples of filter rules:
- `*:Info` -- Resets the level of all classes to Info. - `*:Info` -- Resets the level of all classes to Info.
- `Service:Info` -- Sets the level of Service and all subclasses (Service.FS, Service.APT, - `Service:Info` -- Sets the level of Service to Info (without affecting its subclasses).
etc.) to Info.
- `Service.*:Debug` -- Sets the level of all Service subclasses to Debug, while leaving the
level of Service unchanged.
- `Service.FS:Trace` -- Sets the level of the Service.FS class to Trace. - `Service.FS:Trace` -- Sets the level of the Service.FS class to Trace.