Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Templating
    • Utils
  • NetteModule
  • none
  • Tracy
    • Bridges
      • Nette

Classes

  • Bar
  • BlueScreen
  • Debugger
  • Dumper
  • FireLogger
  • Helpers
  • Logger
  • OutputDebugger

Interfaces

  • IBarPanel
  • ILogger
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated

Class Logger

Logger.

Tracy\Logger implements Tracy\ILogger
Namespace: Tracy
Author: David Grudl
Located at Tracy/Logger.php
Methods summary
public
# __construct( $directory, $email = NULL, Tracy\BlueScreen $blueScreen = NULL )
public string
# log( string|Exception $message, integer $priority = Tracy\ILogger::INFO )

Logs message or exception to file and sends email notification.

Logs message or exception to file and sends email notification.

Parameters

$message
string|Exception
$priority
integer
one of constant ILogger::INFO, WARNING, ERROR (sends email), EXCEPTION (sends email), CRITICAL (sends email)

Returns

string
logged error filename

Implementation of

Tracy\ILogger::log()
protected string
# formatMessage( $message )

Returns

string
protected string
# formatLogLine( $message, $exceptionFile = NULL )

Returns

string
protected string
# getExceptionFile( Exception $exception )

Returns

string
protected string
# logException( Exception $exception, $file = NULL )

Logs exception to the file if file doesn't exist.

Logs exception to the file if file doesn't exist.

Returns

string
logged error filename
protected
# sendEmail( string $message )

Parameters

$message
string
Constants inherited from Tracy\ILogger
CRITICAL, DEBUG, ERROR, EXCEPTION, INFO, WARNING
Properties summary
public string $directory
#

name of the directory where errors should be logged

name of the directory where errors should be logged

public string|array $email
#

email or emails to which send error notifications

email or emails to which send error notifications

public mixed $emailSnooze '2 days'
#

interval for sending email is 2 days

interval for sending email is 2 days

public callable $mailer
#

handler for sending emails

handler for sending emails

Nette 2.3.1 API API documentation generated by ApiGen 2.8.0