https://github.com/beapi/bea-logger
Basic and simple logger
https://github.com/beapi/bea-logger
Last synced: 9 months ago
JSON representation
Basic and simple logger
- Host: GitHub
- URL: https://github.com/beapi/bea-logger
- Owner: BeAPI
- License: gpl-2.0
- Created: 2015-06-25T17:21:47.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-11-14T18:28:30.000Z (about 8 years ago)
- Last Synced: 2025-03-28T07:51:33.551Z (9 months ago)
- Language: PHP
- Size: 11.7 KB
- Stars: 2
- Watchers: 6
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bea logger
Basic and simple logger
# Usage
log_this( 'Log this message', Bea_Log::gravity_0 );
Will log something like this this :
[d-m-Y H:i:s][Emerg] Log this message
const gravity_0 = 'Emerg';
const gravity_1 = 'Alert';
const gravity_2 = 'Crit';
const gravity_3 = 'Err';
const gravity_4 = 'Warning';
const gravity_5 = 'Notice';
const gravity_6 = 'Info';
const gravity_7 = 'Debug';
By default the level will be gravity_7