WordPress Logging Service

This plugin provides a simple API for storing miscellaneous log entries and their overview in admin area (or network
admin area, if activated on a multisite).
Developed for private use (heavily used by my other plugins), but has perspective for more extensive usage. I can’t guarantee any support in the future nor further development, but it is to be expected. Kindly inform me about bugs, if you find any, or propose new features: zaantar@zaantar.eu.
See Usage and FAQ for more information.
API
Definitions:
WLS
-
should be checked before using any wls function
WLS_VERSION
-
should(!) contain current WLS version string
-
severity levels:
WLS_NOCATEGORY = 0 WLS_INFO = 1 WLS_NOTICE = 2 WLS_WARNING = 3 WLS_ERROR = 4 WLS_FATALERROR = 5
Functions:
wls_is_registered( $category_name );
-
returns
true, if$category_nameis registeredwls_register( $category_name, $description );
-
registers
$category_nameas a log category. -
$descriptionwill be shown in admin areawls_clear( $category_name );
-
deletes all log entries of category $category_name
wls_unregister( $category_name );
-
same as wls_clear & removes category $category_name from the list
wls_log( $category_name, $text, $user_id, $date, $blog_id, $severity = 0 );
-
inserts a new log entry into specified category
$datemust be formated according to ISO 8601-
$severityshould be one of defined severity levels (see above)wls_simple_log( $log_name, $text, $severity = 0 );
-
equivalent to
wls_log( $category_name, $text, get_current_user_id(), date( 'c' ), get_current_blog_id(), $severity);
Download & install the zip archive
The plugin package installer can be downloaded from the WP2E project tab called “code”.
1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.
2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.
3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.
- Give a name to your project
- Download the Installer Package
- Install & activate the plugin locally
- Install the suggested dependencies
Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.



