Skip to content

codelego/neutron-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Log library for phpfox framework.

Implement http://www.php-fig.org/psr/psr-3/

https://tools.ietf.org/html/rfc3164

Code    Level      Meaning
0       Emergency  system is unusable
1       Alert      action must be taken immediately
2       Critical   critical conditions
3       Error      error conditions
4       Warning    warning conditions
5       Notice     normal but significant condition
6       Info       informational messages
7       Debug      Debug-level messages

Concepts

  • Log Formater is a driver to format message in various way.
  • Log Writer is a driver to write log message to difference target.
  • Log Manager is a container of "Writer", any invoke to Container will affected to all

Example

$logContainer->add(new FilesystemWriter([...]));
$logContainer->add(new DatabaseWriter([...]));
$logContainer->debug('system unnable');
//result: write to database & file system

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages