>> YANA 4 PHP Framework >> Docs For Class Yana_log

Class Yana_log

Description

«abstract» Yana_log

This is an abstract super class for all kinds of messages.

  • access: public
  • abstract:

Located in /includes/class_yana_log.php


    
            
Variable Summary
mixed $data
string $message
Method Summary

Direct descendents

Class Description
Log Log
Message Message

Variables

mixed $data = null
  • var: any kind of data that might help to understand context in which the message was created
  • access: public
string $message = ""
  • var: the message that should be reported
  • access: public

Methods

constructor
Yana_log Yana_log (
string $message, [mixed $data = null]
)
List of parameters:
Name Type Description
$message string the message that should be reported
$data mixed (optional) any kind of data that might help to understand context in which the message was created
Description:

Create a new instance, representing a system message. To report this message to the framework, just call $YANA->report($yana_log_object).

create log
string getLog ()
Description:

This creates a log entry that is supposed to be written to a log-file

  • access: public
returns the message string of this event
string getMessage ()
Description:

This creates a string of at most 1000 characters containing the text in the message attribute and a serialized representation of the data attribute.

  • access: public

Redefined in descendants as:

Documentation generated on Fri, 17 Nov 2006 20:08:20 +0100 by phpDocumentor 1.3.1

yana author: Thomas MeyerHomepage: www.all-community.de/pub