This is an OctoberCMS plugin that helps developer to record frontend logs.
This OctoberCMS component provides logger methods that the script in the page that has this component can record frontend logs to system.log file.
Types of Logging levels:
- FrontendLogger::onEmergency
- FrontendLogger::onAlert
- FrontendLogger::onCritical
- FrontendLogger::onError
- FrontendLogger::onWarning
- FrontendLogger::onNotice
- FrontendLogger::onInfo
- FrontendLogger::onDebug
NOTE: Please put {% framework %}
or {% framework extras %}
before the <script>
to use $.request
method. Please refer example below.
Example usage:
{% framework %}
<script>
$.request('FrontendLogger::onError', {
data: {
message : 'error message here!'
}
});
</script>
##Other