Overview

Namespaces

  • Core
    • Auth
    • Exceptions
    • Helpers
    • Providers
  • Kernel
    • Dispatch
    • Providers
  • None
  • Vendor
    • ExampleVendor

Classes

  • Logger
  • Mailer
  • Mailer_PHP
  • Overview
  • Namespace
  • Class
  • Download

Class Logger

Logs messages to an external database. Configure it from /app/config/config.ini

Namespace: Kernel\Dispatch
Package: Kernel
Hooks: ('logger_post', $postArray) // Called before posting an error log \Kernel\Logger::sendLog
Located at app/Kernel/Dispatch/Logger.php
Methods summary
public static Kernel\Dispatch\Logger
# singleton( )

Returns a Logger instance, creating it if it did not exist.

Returns a Logger instance, creating it if it did not exist.

Returns

Kernel\Dispatch\Logger
public
# __construct( )
public static
# info( mixed $message, integer $errType = 0 )

Sends an info message to the central logger

Sends an info message to the central logger

Parameters

$message
The message to save. If it is not string or numeric, it will be converted using var_export($var, TRUE)
$errType
= 0 An error code
public static
# warn( mixed $message, integer $errType = 0 )

Sends a warn message to the central logger

Sends a warn message to the central logger

Parameters

$message
The message to save. If it is not string or numeric, it will be converted using var_export($var, TRUE)
$errType
= 0 An error code
public static
# error( array $error )

Sends an error message to the central logger

Sends an error message to the central logger

Parameters

$error
The error to persist
protected static
# sendLog( string $type, string $file, integer $line, string $message, integer $errType )

Sends log info to the central logger and FB::logs the response

Sends log info to the central logger and FB::logs the response

Parameters

$type
The type of log ('info', 'warn', 'error')
$file
The file of the error
$line
The line number where the error is triggered
$message
The error or info message
$errType
The PHP errno
Properties summary
protected static Core\Helpers\Hooks $hooks

The instance of the Hooks class.

The instance of the Hooks class.

#
Ribosome API documentation generated by ApiGen