Skip to content

Provide feature to record logs on backend server from frontend scripts.

Notifications You must be signed in to change notification settings

spycetek/oc-frontendlogger-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Logger Plugin

This is an OctoberCMS plugin that helps developer to record frontend logs.

Components

FrontendLogger

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

About

Provide feature to record logs on backend server from frontend scripts.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages