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

Class Moxiecode_Logger

Logging utility class. This class handles basic logging with levels, log rotation and custom log formats. It's designed to be compact but still powerful and flexible.

Package: MCFileManager\filesystems
Copyright: Copyright 2005, Moxiecode Systems AB, All rights reserved.
Author: Moxiecode
Located at js/tiny_mce/plugins/spellchecker/classes/utils/Logger.php

Methods summary

public
# Moxiecode_Logger( )

Constructs a new logger instance.

public
# setLevel( integer $level )

Sets the current log level, use the MC_LOGGER constants.

public integer
# getLevel( )

Returns the current log level for example MC_LOGGER_DEBUG.

public
# setPath( $path )
public
# getPath( )
public
# setFileName( $file_name )
public
public
# setFormat( $format )
public
public
# setMaxSize( $size )
public
public
# setMaxFiles( $max_files )
public
public
# debug( $msg )
public
# info( $msg )
public
# warn( $msg )
public
# error( $msg )
public
# fatal( $msg )
public
public
public
public
public
public
# _logMsg( $level, $message )
public
# toOSPath( String $path )

Converts a Unix path to OS specific path.

Properties summary

public $_path
#
public $_filename
#
public $_maxSize
#
public $_maxFiles
#
public $_maxSizeBytes
#
public $_level
#
public $_format
#