Overview

Namespaces

  • Nethgui
    • Adapter
    • Authorization
    • Component
    • Controller
      • Collection
      • Table
    • Exception
    • Log
    • Model
    • Module
      • Help
      • Notification
    • Renderer
    • Serializer
    • System
    • Test
      • Tool
      • Unit
        • Nethgui
          • Adapter
            • ParameterSet
          • Authorization
          • Log
          • Module
            • Notification
          • Renderer
          • Serializer
          • System
          • Utility
          • View
        • Test
          • Tool
    • Utility
    • View
    • Widget
      • Xhtml
  • None
  • Test
    • Tool

Classes

  • AbstractLog
  • Nullog
  • Syslog

Interfaces

  • LogConsumerInterface
  • LogInterface
  • Overview
  • Namespace
  • Class
  • Deprecated

Class AbstractLog

Provides message formatting capabilities without specify the log message destination

Nethgui\Log\AbstractLog implements Nethgui\Log\LogInterface, Nethgui\Utility\PhpConsumerInterface

Direct known subclasses

Nethgui\Log\Nullog, Nethgui\Log\Syslog
Abstract
Namespace: Nethgui\Log
Author: Davide Principi davide.principi@nethesis.it
Since: 1.0
Api
Located at Log/AbstractLog.php
Methods summary
abstract protected Nethgui\Log\AbstractLog
# message( string $level, string $message )

Implementors must send the given message and level strings to the log facility

Implementors must send the given message and level strings to the log facility

Parameters

$level
$message

Returns

Nethgui\Log\AbstractLog

Api

public
# __construct( integer $level = E_ALL )

Parameters

$level

See

Nethgui\Log\AbstractLog::setLevel()
public integer
# getLevel( )

Log details level

Log details level

It's a bitmask of E_ERROR , E_WARNING, E_NOTICE

Returns

integer

Api

Implementation of

Nethgui\Log\LogInterface::getLevel()
public Nethgui\Log\LogInterface
# setLevel( $level )

Change log details level

Change log details level

Returns

Nethgui\Log\LogInterface

Api

Implementation of

Nethgui\Log\LogInterface::setLevel()
public Nethgui\Log\LogInterface
# exception( Exception $ex, boolean $stackTrace = FALSE )

Parameters

$ex
The exception to be printed
$stackTrace
Whether to print the stack trace or not

Returns

Nethgui\Log\LogInterface

Api

Implementation of

Nethgui\Log\LogInterface::exception()
public Nethgui\Log\LogInterface
# notice( string $message )

Parameters

$message
The message to be printed

Returns

Nethgui\Log\LogInterface

Api

Implementation of

Nethgui\Log\LogInterface::notice()
public Nethgui\Log\LogInterface
# error( string $message )

Parameters

$message
The message to be printed

Returns

Nethgui\Log\LogInterface

Api

Implementation of

Nethgui\Log\LogInterface::error()
public Nethgui\Log\LogInterface
# warning( string $message )

Parameters

$message
The message to be printed

Returns

Nethgui\Log\LogInterface

Api

Implementation of

Nethgui\Log\LogInterface::warning()
public
# deprecated( $message = "%s: method %s is DEPRECATED!" )
public Nethgui\Utility\PhpConsumerInterface
# setPhpWrapper( Nethgui\Utility\PhpWrapper $object )

Parameters

$object

Returns

Nethgui\Utility\PhpConsumerInterface

Implementation of

Nethgui\Utility\PhpConsumerInterface::setPhpWrapper()
Properties summary
protected Nethgui\Utility\PhpWrapper $phpWrapper
#
protected static array $emitted
# array()
Nethgui Framework API documentation generated by ApiGen