Support log domain specific log handlers
Bug #537681 reported by
wouter bolsterlee
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Anewt |
New
|
Undecided
|
Unassigned |
Bug Description
It would be useful to complement the AnewtLog:
That being done, Anewt modules can start logging all kind of useful stuff using the 'anewt' domain. An example use case debug messages with the executed SQL queries in the database layer.
To post a comment you must log in.
It could also be useful to have the log domain stuff handle everything starting with a prefix, so that e.g. database queries can be logged using the 'anewt-database' log domain.
Perhaps some convention like AnewtLog: :add_handler_ for_domain( 'anewt* ', $handler); can be used for this.