common.logger.appender
[ class tree: common.logger.appender ] [ index: common.logger.appender ] [ all elements ]

Class: FileAppender

Source Location: /logger/appender/FileAppender.class.php

Class Overview

Appender
   |
   --FileAppender

FileAppender writes a exception into a file.


Author(s):

  • Simon Schmid (hakky0815@gmail.com)

Methods


Inherited Methods

Class: Appender

Appender::__construct()
Create a new Appender instance.
Appender::getLayout()
Retrieve the layout this appender is using.
Appender::setLayout()
Set the layout this appender will use.
Appender::write()
Write to this appender.
Appender::__destruct()
Cleanup appender resources if any exist.

Class Details

[line 21]
FileAppender writes a exception into a file.



Tags:

since:  2.0.0 $Id$
author:  Simon Schmid (hakky0815@gmail.com)


[ Top ]


Class Methods


constructor __construct [line 47]

FileAppender __construct( Layout $layout, string $file, [bool $append = true])

Create a new FileAppender instance.



Tags:

access:  public
since:  2.0


Overrides Appender::__construct() (Create a new Appender instance.)

Parameters:

Layout   $layout   A Layout instance.
string   $file   An absolute file-system path to the log file.
bool   $append   Whether or not the file pointer should be opened in appending mode (if false, all data is truncated).

[ Top ]

destructor __destruct [line 105]

void __destruct( )

Close the file pointer.

<note> This should never be called manually. </note>




Tags:

access:  public
since:  2.0


Overrides Appender::__destruct() (Cleanup appender resources if any exist.)

[ Top ]

method write [line 127]

void write( string $exception)

Write an exception to the log file.



<note> This should never be called manually. </note>




Tags:

access:  public
since:  2.0


Overrides Appender::write() (Write to this appender.)

Parameters:

string   $exception   The exception to write.

[ Top ]


Documentation generated on Tue, 21 Feb 2006 02:29:46 +0900 by phpDocumentor 1.3.0RC5