Skip to content

joshnesbitt/logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Logger

A simple PHP logger class for logging out to a specified file.

Log levels can be one of the following:

INFO
DEBUG
WARN
ERROR
FATAL

Output is only written to file if the log level is within the scope of the level specified when instantiating the logger (e.g. a info call would not be written if the log level was set to WARN).

Usage

$logger = new Logger("development.log", Logger::INFO);

# would create a new log file at /path/to/logger/script/log/development.log

$logger->info("Why hello there Ted");

# writes "Why hello there Ted" to development.log

About

Simple php logging class.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages