Load the Logger library.
The control panel contains a developer log, which is a log for ExpressionEngine and its third-party developers to bring notices or warnings to the attention of the Super Admin.
Control Panel Location:
Developer --> Logs --> Developer
For example, EllisLab uses the developer log to warn developers if a core function that is planned to be deprecated is being used by any third-party add-ons.
||Message to send to the developer log|
||Amount of time where you should only show one meessage. For example, if an item should only show once per week, an item is logged with an expires time of 604800 seconds.|
||Array of data for the log message|
To use the developer log to log your own events, notices or warnings that need to be brought to the attention of the Super Admin, call this method and pass the string of the notice:
Note: Be conscious of how often the developer() method is used so as not to clutter the developer log and run unnecessary queries.