forked from adampatterson/Tentacle
-
Notifications
You must be signed in to change notification settings - Fork 1
Logger
adampatterson edited this page Feb 10, 2013
·
2 revisions
DEBUG_SQL TRUE will log all SLQ queries DEBUG TRUE Will allow logging to be shown to logged in users. But does not prevent logging from occurring.
By default logging is only displayed only to site administrators who are actively logged in. Logging is instance based meaning that data is not persistent from page to page.
logger::set( 'Name', 'Message', level=int );
Level
- 0 null
- 1 info
- 2 success
- 3 warning
- 4 error
Calling logger::render()
will show the log contents do any user.
To return an array of all collected data call:
logger::get();
Calling logger::file()
will dump the contents to /log-dev.txt
This file should be writable.