Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

Interfaces

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class Logger

Logger.

Object
Extended by Logger
Package: Nette\Diagnostics
Author: David Grudl
Located at Diagnostics/Logger.php
Methods summary
public boolean
# log( string|array $message, integer $priority = Logger::INFO )

Logs message or exception to file and sends email notification.

Logs message or exception to file and sends email notification.

Parameters

$message
string|array
$priority
integer
one of constant INFO, WARNING, ERROR (sends email), CRITICAL (sends email)

Returns

boolean
was successful?
public static
# defaultMailer( string $message, string $email )

Default mailer.

Default mailer.

Parameters

$message
string
$email
string
Methods inherited from Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants summary
string DEBUG 'debug'
#
string INFO 'info'
#
string WARNING 'warning'
#
string ERROR 'error'
#
string CRITICAL 'critical'
#
Properties summary
public static integer $emailSnooze 172800
#

interval for sending email is 2 days

interval for sending email is 2 days

public callable $mailer array(__CLASS__, 'defaultMailer')
#

handler for sending emails

handler for sending emails

public string $directory
#

name of the directory where errors should be logged; FALSE means that logging is disabled

name of the directory where errors should be logged; FALSE means that logging is disabled

public string $email
#

email to sent error notifications

email to sent error notifications

Magic properties inherited from Object
$reflection
Nette Framework 2.0.18 (for PHP 5.2, un-prefixed) API documentation generated by ApiGen 2.8.0