Hi all I was trying to use ezcDebug in project, but using the class just feels weird. Here are my problems:
* The log method takes a verbosity as second parameter, which is then added to $extraInfo for the ezcLog::log method. I expected the second parameter to be severity instead, but severity is always set to ezcLog::DEBUG. Verbosity can be added to $extraOptions anyway. => There is no way to set the severity of a message when using the log method. * Using ezcDebug::debugHandler as error handler gives a severity as long as the error level is E_USER_*, otherwise it's 'false'. But then the severity is passed as second parameter to the log() method, which uses that as verbosity. This seems really messed up to me... * ezcDebug::debugHandler is inferior to ezcLog::logHandler. Through logHandler it's possible to add a severity between the square brackets. This feature is not available when using debugHandler. * The debug HTML output uses verbosity in its output (verbosity:category:source). This can lead to something like this: 1:default:default. I was under the impression that it used to output the pretty name of ezcLog severity constant (e.g. Error) instead of the verbosity level. The severity is more useful anyway. I can log an error, but the output doesn't tell me it's an error. Instead it tells me it was a verbosity 1 message and colours it red based on that. Verbosity level is IMHO a way to control the details of the output, e.g. only output verbosity level 1 and 2 and ignore level 3 messages. It's not something that should be shown while the severity is. Did anyone encounter the same issues with the Debug component or am I dreaming? ;-) Regards, Hans -- Components mailing list [email protected] http://lists.ez.no/mailman/listinfo/components
