Overview

Namespaces

  • GAubry
    • ErrorHandler
    • Helpers
    • Logger
    • Shell
  • Himedia
    • Padocc
      • DB
      • Minifier
      • Numbering
      • Properties
      • Task
        • Base
        • Extended
  • None
  • Psr
    • Log

Classes

  • AbstractLogger
  • ColoredIndentedLogger
  • MinimalLogger
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class MinimalLogger

This Logger can be used to avoid both indentation and insertion of bash color codes into log messages.

Logging should always be optional, and if no logger is provided to your library creating a \Psr\Log\NullLogger instance in order to avoid conditional log calls.

Copyright (c) 2013 Geoffroy Aubry <geoffroy.aubry@free.fr> Licensed under the GNU Lesser General Public License v3 (LGPL version 3).

Psr\Log\AbstractLogger implements Psr\Log\LoggerInterface
Extended by GAubry\Logger\AbstractLogger
Extended by GAubry\Logger\MinimalLogger
Namespace: GAubry\Logger
Copyright: 2013 Geoffroy Aubry <geoffroy.aubry@free.fr>
License: http://www.gnu.org/licenses/lgpl.html
Located at logger/src/GAubry/Logger/MinimalLogger.php
Methods summary
public
# __construct( string $sMinMsgLevel = GAubry\Logger\LogLevel::DEBUG )

Constructor.

Constructor.

Parameters

$sMinMsgLevel
string
$iMinMsgLevel threshold required to log message, must be defined in \Psr\Log\LogLevel

Throws

Psr\Log\InvalidArgumentException
if calling this method with a level not defined in \Psr\Log\LogLevel

Overrides

GAubry\Logger\AbstractLogger::__construct()
public null
# log( string $sMsgLevel, string $sMessage, array $aContext = array() )

Logs with an arbitrary level.

Logs with an arbitrary level.

Parameters

$sMsgLevel
string
$sMsgLevel message level, must be defined in \Psr\Log\LogLevel
$sMessage
string
$sMessage message with placeholders
$aContext
array
$aContext context array

Returns

null

Throws

Psr\Log\InvalidArgumentException
if calling this method with a level not defined in \Psr\Log\LogLevel
Methods inherited from GAubry\Logger\AbstractLogger
checkMsgLevel(), interpolateContext()
Methods inherited from Psr\Log\AbstractLogger
alert(), critical(), debug(), emergency(), error(), info(), notice(), warning()
Properties inherited from GAubry\Logger\AbstractLogger
$aIntLevels, $iMinMsgLevel
Platform for Automatized Deployments with pOwerful Concise Configuration API documentation generated by ApiGen 2.8.0