Gumbo PHP Library API Documentation
Log
[
class tree
] [
index
] [
all elements
]
Todo List
Packages:
Buffer
Collection
Composite
Config
Converter
Curl
Date
DB
Debug
Encryption
Error
Factory
Filter
Flyweight
Http
Input
Iterator
List
Load
Lockable
Log
Map
Number
Observer
Output
Query
Record
Router
Session
Setting
Singleton
Template
Timer
Utility
Valid
Source for file Log.class.php
Documentation is available at
Log.class.php
<?php
/**
* Gumbo Library Framework
*
* LICENSE
* This library is being released under the terms of the New BSD License. A
* copy of the license is packaged with the software (LICENSE.txt). If no
* copy is found, a copy of the license template can be found at:
* http://www.opensource.org/licenses/bsd-license.php
*
*
@category
Gumbo
*
@package
Log
*
@copyright
Copyright (c) 2007, iBayou, Michael Luster
*
@license
http://www.opensource.org/licenses/bsd-license.php New BSD License
*
@author
Michael Luster <mluster79@yahoo.com>
*
@link
http://sourceforge.net/projects/phpgumbo
*
@version
0.0.1
*/
/**
* Log Interface
*
* This is responsible for holding Log Message created by the system. A Log
* Message Type is defined by the Log Message, which indicates the type of Log
* Message being created. The implementing class will have the option to
* restrict certain Message Types from being written. This creates an easy way
* to ignore certain types of Messages.
*
*
@category
Gumbo
*
@package
Log
*
@copyright
Copyright (c) 2007, iBayou, Michael Luster
*
@license
http://www.opensource.org/licenses/bsd-license.php New BSD License
*
@author
Michael Luster <mluster79@yahoo.com>
*
@link
http://sourceforge.net/projects/phpgumbo
*
@desc
Log Interface
*
@version
0.0.1
*/
gumbo_load
(
"Interface_Log_Message"
)
;
interface
Gumbo_Interface_Log
{
/** ACTION METHODS **/
/**
* Writes the messages to the corresponding Log file
*
@precondition
isOn()
*/
public
function
write
(
)
;
/**
* Adds a log message to the list
*
@precondition
isOn()
*
@param
Gumbo_Interface_Log_Message
$mess
*/
public
function
add
(
Gumbo_Interface_Log_Message
$mess
)
;
/**
* Clears the log messages in the system
*/
public
function
clear
(
)
;
/**
* Turn on Logging
*
@postcondition
isOn()
*/
public
function
turnOn
(
)
;
/**
* Turn off Logging
*
@postcondition
!isOn()
*/
public
function
turnOff
(
)
;
/**
* Adds an active Log Message Type
*
@param
string
$type
*/
public
function
addType
(
$type
)
;
/**
* Removes an active Log Message Type
*
@param
string
$type
*/
public
function
delType
(
$type
)
;
/**
* Resets the types
*/
public
function
resetTypes
(
)
;
/** ACCESSOR METHODS **/
/**
* Returns all the log messages
*
@return
array
*/
public
function
getAll
(
)
;
/**
* Returns if Logging is on
*
@return
bool
*/
public
function
isOn
(
)
;
/**
* Returns all available types
*
@return
array
*/
public
function
getTypes
(
)
;
/**
* Returns if the message type is registered
*
@param
string
$type
*
@return
bool
*/
public
function
isType
(
$type
)
;
/**
* Returns if to ignore Types (or set to ignore Types)
*
@param
bool
$ignore
*
@return
bool
*/
public
function
ignoreTypes
(
$ignore
=
null
)
;
}
?>