AloFramework documentation
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • Alo
    • Cache
    • CLI
    • Controller
    • Db
    • Exception
    • FileSystem
    • Session
    • Traversables
    • Validators
    • Windows
  • Controller
  • None
  • PHP

Classes

  • Alo
  • Log

Functions

  • debug
  • debugLite
  • get
  • getallheaders
  • phpDeprecated
  • phpError
  • phpNotice
  • phpWarning
  • timestampPrecise

Class Log

Logs messages

Abstract
Author:Art <a.molcanovas@gmail.com>
Located atsys/core/log.php

Methods summary

public static boolean|string
#logLevel(string|null$level=null)

Gets or sets the log level. If no parameter is passed, returns self::$logLevel, if it's set and has a valid value, sets it and returns TRUE;

Gets or sets the log level. If no parameter is passed, returns self::$logLevel, if it's set and has a valid value, sets it and returns TRUE;

Parameters

$level
string|null
$level The logging level

Returns

boolean|string

Author

Art <a.molcanovas@gmail.com>

See

Log::$logLevel
public static string
#debug(string$msg,array$trace=null)

Logs a debug level message

Logs a debug level message

Parameters

$msg
string
$msg The message
$trace
array
$trace optionally, supply the debug trace

Returns

string
The message you passed on

Author

Art <a.molcanovas@gmail.com>
public static string
#warning(string$msg,array$trace=null)

Logs a warning level message

Logs a warning level message

Parameters

$msg
string
$msg The message
$trace
array
$trace optionally, supply the debug trace

Returns

string
The message you passed on

Author

Art <a.molcanovas@gmail.com>
public static string
#error(string$msg,array$trace=null)

Logs a error level message

Logs a error level message

Parameters

$msg
string
$msg The message
$trace
array
$trace optionally, supply the debug trace

Returns

string
The message you passed on

Author

Art <a.molcanovas@gmail.com>
protected static boolean
#doWrite(string$msg,string$level,array$trace=null)

Performs the write operation

Performs the write operation

Parameters

$msg
string
$msg The message to log
$level
string
$level The level of the message
$trace
array
$trace optionally, supply the debug trace

Returns

boolean

Author

Art <a.molcanovas@gmail.com>

Magic methods summary

Constants summary

stringMSG_ERROR'ERROR'
#

Identifier for error messages

Identifier for error messages

stringMSG_DEBUG'DEBUG'
#

Identifier for debug messages

Identifier for debug messages

stringMSG_WARNING'WARNING'
#

Identifier for warning messages

Identifier for warning messages

Properties summary

protected static string$logLevel
#

The logging level

The logging level

protected static string$today
#

Today's date

Today's date

AloFramework documentation API documentation generated byApiGen 2.8.0