phpDocumentor Swift
[ class tree: Swift ] [ index: Swift ] [ all elements ]

Class: SwiftLog

Source Location: /classes/SwiftLog.php

Class SwiftLog

Class Overview

Contains functions for reading and writing log messages to the file system or to a database.

for our App.

Located in /classes/SwiftLog.php [line 43]



		
		
		
		

Methods

[ Top ]
Method Summary
SwiftLog   __construct()   Creates a new SwiftLog object.
int   logDebug()   Logs a debug message with a timestamp to the debug.log file in the default log directory.
int   logError()   Logs a error message with a timestamp to the error.log file in the default log directory.
int   logFatal()   Logs a fatal message with a timestamp to the fatal.log file in the default log directory.
int   logInfo()   Logs a info message with a timestamp to the info.log file in the default log directory.
int   logWarning()   Logs a warning message with a timestamp to the warning.log file in the default log directory.

[ Top ]
Methods
Constructor __construct  [line 58]

  SwiftLog __construct( string $log_dir  )

Creates a new SwiftLog object.

Parameters:
string   $log_dir:  The base log directory to store logs in.

API Tags:
Return:  The new SwiftLog object
Access:  public


[ Top ]
logDebug  [line 81]

  int logDebug( string $msg  )

Logs a debug message with a timestamp to the debug.log file in the default log directory.

Parameters:
string   $msg:  The message to log.

API Tags:
Return:  Returns the number of bytes that were written to the file, or FALSE on failure.
Access:  public


[ Top ]
logError  [line 108]

  int logError( string $msg  )

Logs a error message with a timestamp to the error.log file in the default log directory.

Parameters:
string   $msg:  The message to log.

API Tags:
Return:  Returns the number of bytes that were written to the file, or FALSE on failure.
Access:  public


[ Top ]
logFatal  [line 117]

  int logFatal( string $msg  )

Logs a fatal message with a timestamp to the fatal.log file in the default log directory.

Parameters:
string   $msg:  The message to log.

API Tags:
Return:  Returns the number of bytes that were written to the file, or FALSE on failure.
Access:  public


[ Top ]
logInfo  [line 90]

  int logInfo( string $msg  )

Logs a info message with a timestamp to the info.log file in the default log directory.

Parameters:
string   $msg:  The message to log.

API Tags:
Return:  Returns the number of bytes that were written to the file, or FALSE on failure.
Access:  public


[ Top ]
logWarning  [line 99]

  int logWarning( string $msg  )

Logs a warning message with a timestamp to the warning.log file in the default log directory.

Parameters:
string   $msg:  The message to log.

API Tags:
Return:  Returns the number of bytes that were written to the file, or FALSE on failure.
Access:  public


[ Top ]

Documentation generated on Tue, 08 Oct 2013 05:37:16 +0200 by phpDocumentor 1.4.4