mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4603 from patricknelson/issue-freshen-log-api
API (minor): Freshening up SS_Log API documentation...
This commit is contained in:
commit
a0ad723cb5
@ -10,6 +10,8 @@
|
|||||||
* - SS_Log::ERR
|
* - SS_Log::ERR
|
||||||
* - SS_Log::WARN
|
* - SS_Log::WARN
|
||||||
* - SS_Log::NOTICE
|
* - SS_Log::NOTICE
|
||||||
|
* - SS_Log::INFO
|
||||||
|
* - SS_Log::DEBUG
|
||||||
*
|
*
|
||||||
* You can add an error writer by calling {@link SS_Log::add_writer()}
|
* You can add an error writer by calling {@link SS_Log::add_writer()}
|
||||||
*
|
*
|
||||||
@ -76,14 +78,12 @@ class SS_Log
|
|||||||
* error code, error line, error context (backtrace).
|
* error code, error line, error context (backtrace).
|
||||||
*
|
*
|
||||||
* @param mixed $message Exception object or array of error context variables
|
* @param mixed $message Exception object or array of error context variables
|
||||||
* @param const $priority Priority. Possible values: SS_Log::ERR, SS_Log::WARN or SS_Log::NOTICE
|
* @param string $priority Priority. Possible values: SS_Log::ERR, SS_Log::WARN, SS_Log::NOTICE, SS_Log::INFO or SS_Log::DEBUG
|
||||||
* @param mixed $extras Extra information to log in event
|
|
||||||
*
|
*
|
||||||
* @deprecated 4.0.0:5.0.0 Use Injector::inst()->get('Logger')->log($priority, $message) instead
|
* @deprecated 4.0.0:5.0.0 Use Injector::inst()->get('Logger')->log($priority, $message) instead
|
||||||
*/
|
*/
|
||||||
public static function log($message, $priority, $extras = null) {
|
public static function log($message, $priority) {
|
||||||
Deprecation::notice('4.0', 'Use Injector::inst()->get(\'Logger\')->log($priority, $message) instead');
|
Deprecation::notice('4.0', 'Use Injector::inst()->get(\'Logger\')->log($priority, $message) instead');
|
||||||
|
|
||||||
Injector::inst()->get('Logger')->log($priority, $message);
|
Injector::inst()->get('Logger')->log($priority, $message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user