log\Target getMessagePrefix()

getMessagePrefix() public method

Returns a string to be prefixed to the given message.

If $prefix is configured it will return the result of the callback. The default implementation will return user IP, user ID and session ID as a prefix.

public string getMessagePrefix ( $message )
$message array

The message being exported. The message structure follows that in yii\log\Logger::$messages.

return string

The prefix string

doc_Yii
2016-10-30 17:07:00
Comments
Leave a Comment

Please login to continue.