extends abstract class Phalcon\Logger\Adapter
implements Phalcon\Logger\AdapterInterface
Adapter to store logs in plain text files
$logger = new \Phalcon\Logger\Adapter\File("app/logs/test.log"); $logger->log("This is a message"); $logger->log(\Phalcon\Logger::ERROR, "This is an error"); $logger->error("This is another error"); $logger->close();
File Path
Phalcon\Logger\Adapter\File constructor
Returns the internal formatter
Writes the log to the file itself
Closes the logger
Opens the internal file handler after unserialization
Filters the logs sent to the handlers that are less or equal than a specific level
Returns the current log level
Sets the message formatter
Starts a transaction
Commits the internal transaction
Rollbacks the internal transaction
Returns the whether the logger is currently in an active transaction or not
Sends/Writes a critical message to the log
Sends/Writes an emergency message to the log
Sends/Writes a debug message to the log
Sends/Writes an error message to the log
Sends/Writes an info message to the log
Sends/Writes a notice message to the log
Sends/Writes a warning message to the log
Sends/Writes an alert message to the log
Logs messages to the internal logger. Appends logs to the logger
© 2011–2017 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/latest/api/Phalcon_Logger_Adapter_File.html