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

Namespaces

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

Classes

  • Alo
  • Log

Functions

  • debug
  • escape_html5
  • get
  • getallheaders
  • includeifexists
  • includeonceifexists
  • lite_debug
  • server_is_windows
  • timestamp_precise

Class Log

Logs messages

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

Methods summary

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

Gets or sets the log level. If no parameter is passed, returns self::$log_level, 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::$log_level, 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::$log_level
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
# 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
# do_write( 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

string MSG_ERROR 'ERROR'
#

Identifier for error messages

Identifier for error messages

string MSG_DEBUG 'DEBUG'
#

Identifier for debug messages

Identifier for debug messages

Properties summary

protected static string $log_level
#

The logging level

The logging level

protected static string $today
#

Today's date

Today's date

AloFramework documentation API documentation generated by ApiGen 2.8.0