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
  • PHP

Classes

  • DebugBar
  • DebugBlueScreen
  • Debugger
  • DebugHelpers
  • FireLogger
  • Logger

Interfaces

  • IBarPanel
  • Overview
  • Package
  • Class
  • Tree

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?
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 callback $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

Nette Framework 2.0.1 (for PHP 5.2, un-prefixed) API API documentation generated by ApiGen 2.7.0