Class ChromeLoggerHandler

Summary

Fully Qualified Name: CodeIgniter\Log\Handlers\ChromeLoggerHandler
Extends: BaseHandler
Implements: HandlerInterface

Description

Class ChromeLoggerHandler

Allows for logging items to the Chrome console for debugging. Requires the ChromeLogger extension installed in your browser.

Methods

Name Description Defined By
__construct() Constructor ChromeLoggerHandler
canHandle() Checks whether the Handler will handle logging items of this log Level. BaseHandler
handle() Handles logging the message. ChromeLoggerHandler
sendLogs() Attaches the header and the content to the passed in request object. ChromeLoggerHandler
setDateFormat() Stores the date format to use while logging messages. BaseHandler

Method Details

__construct()

Constructor

Parameter Name Type Description
$config array

Returns:

canHandle()

Checks whether the Handler will handle logging items of this log Level.

Parameter Name Type Description
$level
$level

Returns: bool

handle()

Handles logging the message.

If the handler returns false, then execution of handlers will stop. Any handlers that have not run, yet, will not be run.

Parameter Name Type Description
$message
$level
$message

Returns: bool

sendLogs()

Attaches the header and the content to the passed in request object.

Parameter Name Type Description
$response \ResponseInterface

Returns:

setDateFormat()

Stores the date format to use while logging messages.

Parameter Name Type Description
$format string

Returns: \HandlerInterface

Top