This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation

Class Concrete5_Library_Log

A library for dealing with searchable logs.

Direct known subclasses

Log

Package: Utilities
Category: Concrete
Copyright: Copyright (c) 2003-2008 Concrete5. (http://www.concrete5.org)
License: MIT License
Author: Andrew Embler andrew@concrete5.org
Located at core/libraries/log.php

Methods summary

public
# __construct( $log = null, $session = true, $internal = false )
public
# write( $message )
public static
# addEntry( $message, $namespace = false )
public
# clearCustom( )

Removes all "custom" log entries - these are entries that an app owner has written and don't have a builtin C5 type

public
# clearByType( string $type )

Removes log entries by type- these are entries that an app owner has written and don't have a builtin C5 type

public
public
# clearAll( )

Removes all log entries

public
# close( )
public
# archive( )

Renames a log file and moves it to the log archive.

public static
# getTotal( $keywords, $type )

Returns the total number of entries matching this type

public static
# getList( $keywords, $type, $limit )

Returns a list of log entries

public static
# getTypeList( )

Returns an array of distinct log types

public
# getName( )
public static
# getLogs( )

Returns all the log files in the directory