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
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Utils
  • none
  • Tracy
    • Bridges
      • Nette

Classes

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

Interfaces

  • IBarPanel
  • ILogger
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class Logger

Logger.

Tracy\Logger implements Tracy\ILogger
Namespace: Tracy
Located at Tracy/Logger.php
Methods summary
public
# __construct( $directory, $email = NULL, Tracy\BlueScreen $blueScreen = NULL )
public string
# log( string|Exception|Throwable $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
$priority
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( string|Exception|Throwable $message )

Parameters

$message

Returns

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

Parameters

$message
$exceptionFile

Returns

string
string
public string
# getExceptionFile( Exception|Throwable $exception )

Parameters

$exception

Returns

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

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

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

Parameters

$exception
$file

Returns

string
logged error filename
protected
# sendEmail( string|Exception|Throwable $message )

Parameters

$message
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 string $fromEmail

sender of email notifications

sender of email notifications

#
public mixed $emailSnooze

interval for sending email is 2 days

interval for sending email is 2 days

#'2 days'
public callable $mailer

handler for sending emails

handler for sending emails

#
Nette 2.3-20161221 API API documentation generated by ApiGen 2.8.0