ICanBoogie
  • Documentation
  • API Reference
  • ICanBoogie 4.0.x
Namespaces
  • ICanBoogie
    • Application
    • Autoconfig
    • Binding
    • Routing
    • Session
Classes
  • AlreadyAuthenticated
  • AppConfig
  • Core
  • Debug
  • Helpers
  • Hooks
  • Logger
  • LogLevel
  • SessionWithEvent
Interfaces
  • LoggerInterface
Traits
  • AppAccessor
  • LoggerTrait
Exceptions
  • ApplicationAlreadyBooted
  • ApplicationAlreadyInstantiated
  • ApplicationAlreadyRunning
  • ApplicationNotInstantiated

Class Logger

A message logger using the application's session to store the messages.

ICanBoogie\Logger implements ICanBoogie\LoggerInterface uses ICanBoogie\LoggerTrait
Namespace: ICanBoogie
Located at Logger.php

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

$app

Returns

ICanBoogie\Logger
public __construct( ICanBoogie\Application $app )

Initialize the $app property.

Initialize the $app property.

Parameters

$app
public log( $level, $message, array $context = [] )

Inheritdoc

public get_messages( string $level ) : string[]

Parameters

$level

Returns

string[]

Inheritdoc

Implementation of

ICanBoogie\LoggerInterface::get_messages()
public fetch_messages( string $level ) : string[]

Parameters

$level

Returns

string[]

Inheritdoc

Implementation of

ICanBoogie\LoggerInterface::fetch_messages()

Methods used from ICanBoogie\LoggerTrait

success()

Constants summary

MAX_MESSAGES : integer
50
ICanBoogie 4.0.x – Check on GitHub – API documentation generated by ApiGen