Download the PHP package digital-canvas/simple-file-logger without Composer
On this page you can find all versions of the php package digital-canvas/simple-file-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download digital-canvas/simple-file-logger
More information about digital-canvas/simple-file-logger
Files in digital-canvas/simple-file-logger
Download digital-canvas/simple-file-logger
More information about digital-canvas/simple-file-logger
Files in digital-canvas/simple-file-logger
Vendor digital-canvas
Package simple-file-logger
Short Description A simple logger that logs messages to a file.
License MIT
Package simple-file-logger
Short Description A simple logger that logs messages to a file.
License MIT
Please rate this library. Is it a good library?
Informations about the package simple-file-logger
Simple File Logger
A simple logger that logs messages to a file.
Installation
Install with composer
or add the following to your composer.json
// Create Logger instance
$file = "path/to/log/file.log";
$logger = new SimpleFileLogger($file);
// Log DEBUG message
$logger->debug("DEBUG log message");
$logger->log(SimpleFileLogger::DEBUG, "DEBUG log message");
// Log INFO message
$logger->info("INFO log message");
$logger->log(SimpleFileLogger::INFO, "INFO log message");
// Log NOTICE message
$logger->notice("NOTICE log message");
$logger->log(SimpleFileLogger::NOTICE, "NOTICE log message");
// Log WARNING message
$logger->warning("WARNING log message");
$logger->log(SimpleFileLogger::WARNING, "WARNING log message");
// Log ERROR message
$logger->error("ERROR log message");
$logger->log(SimpleFileLogger::ERROR, "ERROR log message");
// Log CRITICAL message
$logger->critical("CRITICAL log message");
$logger->log(SimpleFileLogger::CRITICAL, "CRITICAL log message");
// Log ALERT message
$logger->alert("ALERT log message");
$logger->log(SimpleFileLogger::ALERT, "ALERT log message");
// Log EMERGENCY message
$logger->emergency("EMERGENCY log message");
$logger->log(SimpleFileLogger::EMERGENCY, "EMERGENCY log message");
// Log with extra data
$logger->log(SimpleFileLogger::INFO, "INFO log message", array('user' => "Bob", "exception" => new Exception()));
All versions of simple-file-logger with dependencies
PHP Build Version
Package Version
No informations.
The package digital-canvas/simple-file-logger contains the following files
Loading the files please wait ....