By Adam Patterson in: Announcements
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.
Set a logg event
logger::set( 'Name', 'Message', level=int );
- 0Â null
- 1Â info
- 2Â success
- 3Â warning
- 4Â error
Render the logged events
CallingÂ logger::render()Â will show the log contents do any user.
To return an array of all collected data call:
Logging to a file
CallingÂ logger::file()Â will dump the contents to /log-dev.txt
This file should be writable.