Class Logger
A message logger using the application's session to store the messages.
-
ICanBoogie\Logger
implements
ICanBoogie\LoggerInterface
uses
ICanBoogie\LoggerTrait
Methods summary
public static
get_logger( ICanBoogie\Application $app
)
: ICanBoogie\Logger
Returns the application's logger, create it if needed.
Returns the application's logger, create it if needed.
Parameters
Returns
public
__construct( ICanBoogie\Application $app
)
Initialize the $app property.
Initialize the $app property.
Parameters
public
log( $level
, $message
, array $context
= [] )
public
get_messages( string $level
)
: string[]
Parameters
Returns
string[]
Inheritdoc
Implementation of
public
fetch_messages( string $level
)
: string[]
Parameters
Returns
string[]
Inheritdoc
Implementation of
success()
Constants summary
MAX_MESSAGES
: integer
50