Class Logger
A message logger using the core's session to store the messages.
-
ICanBoogie\Logger
implements
ICanBoogie\LoggerInterface
uses
ICanBoogie\LoggerTrait
Methods summary
public static
get_logger( ICanBoogie\Core
$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\Core
$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