The FileHandler class, located in the core logging
package, sends logging output to a disk file. It inherits the output
functionality from StreamHandler.
class FileHandler( |
filename[, mode]) |
-
Returns a new instance of the FileHandler class. The specified
file is opened and used as the stream for logging. If mode is
not specified, 'a' is used. By default, the file grows
indefinitely.
-
Closes the file.
-
Outputs the record to the file.
Release 2.5, documentation updated on 19th September, 2006.
See About this document... for information on suggesting changes.