ICanBoogie
  • Documentation
  • API Reference
  • ICanBoogie master
Namespaces
  • ICanBoogie
    • Autoconfig
    • Binding
    • Core
    • Routing
    • Session
Classes
  • AlreadyAuthenticated
  • Core
  • Debug
  • Helpers
  • Hooks
  • Logger
  • LogLevel
  • SessionWithEvent
Interfaces
  • LoggerInterface
Traits
  • AppAccessor
  • LoggerTrait
Exceptions
  • CoreAlreadyBooted
  • CoreAlreadyInstantiated
  • CoreAlreadyRunning
  • CoreNotInstantiated

Class Logger

A message logger using the core'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\Core $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\Core $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 master – Check on GitHub – API documentation generated by ApiGen