Namespaces

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

Classes

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

Interfaces

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

Class Logger

Logger.

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

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 Nette\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 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|array $email
#

email or emails to which send error notifications

email or emails to which send error notifications

Magic properties inherited from Nette\Object
$reflection
Nette 2.1 API documentation generated by ApiGen 2.8.0