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.
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.