Overview

Packages

  • awl
    • AuthPlugin
    • AwlDatabase
    • Browser
    • classEditor
    • DataEntry
    • DataUpdate
    • EMail
    • iCalendar
    • MenuSet
    • PgQuery
    • Session
    • Translation
    • User
    • Utilities
    • Validation
    • vCalendar
    • vComponent
    • XMLDocument
    • XMLElement
  • None
  • PHP

Functions

  • awl_get_fields
  • awl_version
  • check_by_regex
  • dbg_error_log
  • dbg_log_array
  • define_byte_mappings
  • deprecated
  • fatal
  • force_utf8
  • gzdecode
  • olson_from_tzstring
  • param_to_global
  • quoted_printable_encode
  • replace_uri_params
  • session_salted_md5
  • session_salted_sha1
  • session_simple_md5
  • session_validate_password
  • trace_bug
  • uuid
  • Overview
  • Package
  • Function
  • Tree
  • Deprecated
  • Todo

Function dbg_error_log

Writes a debug message into the error log using printf syntax. If the first parameter is "ERROR" then the message will _always_ be logged. Otherwise, the first parameter is a "component" name, and will only be logged if $c->dbg["component"] is set to some non-null value.

If you want to see every log message then $c->dbg["ALL"] can be set, and then individual components can be set to zero to selectively ignore them. Additionally, log messages can be filtered by remote IP or username by populating the $c->dbg_filter["remoteIP"][] and $c->dbg_filter["authenticatedUser"][] arrays.

Package: awl\Utilities
Copyright: Catalyst IT Ltd, Morphoss Ltd <http://www.morphoss.com/>
License: GNU LGPL version 3 or later
Author: Andrew McMillan <andrew@mcmillan.net.nz>
Var: string $component The component to identify itself, or "ERROR", or "LOG:component"
Var: string $format A format string for the log message
Var: [string $parameter ...] Parameters for the format string.
Located at AWLUtilities.php
AWL API documentation generated by ApiGen 2.8.0