All Projects → inpsyde → Wonolog

inpsyde / Wonolog

Licence: mit
Monolog-based logging package for WordPress.

Projects that are alternatives of or similar to Wonolog

Traceback with variables
Adds variables to python traceback. Simple, lightweight, controllable. Debug reasons of exceptions by logging or pretty printing colorful variable contexts for each frame in a stacktrace, showing every value. Dump locals environments after errors to console, files, and loggers. Works in Jupyter and IPython. Install with pip or conda.
Stars: ✭ 509 (+258.45%)
Mutual labels:  logging, debugging
Viztracer
VizTracer is a low-overhead logging/debugging/profiling tool that can trace and visualize your python code execution.
Stars: ✭ 874 (+515.49%)
Mutual labels:  logging, debugging
Stern
⎈ Multi pod and container log tailing for Kubernetes
Stars: ✭ 5,614 (+3853.52%)
Mutual labels:  logging, debugging
Clockwork Chrome
Clockwork - php dev tools integrated to your browser - Chrome extension
Stars: ✭ 415 (+192.25%)
Mutual labels:  logging, debugging
React Native Logs
Performance-aware simple logger for React-Native with namespaces, custom levels and custom transports (colored console, file writing, etc.)
Stars: ✭ 84 (-40.85%)
Mutual labels:  logging, debugging
Log Process Errors
Show some ❤️ to Node.js process errors
Stars: ✭ 424 (+198.59%)
Mutual labels:  logging, debugging
Httplog
Log outgoing HTTP requests in ruby
Stars: ✭ 633 (+345.77%)
Mutual labels:  logging, debugging
Stream
🗄️ Stream plugin for WordPress
Stars: ✭ 335 (+135.92%)
Mutual labels:  wordpress, logging
Vlog
An in-display logging library for Android 📲
Stars: ✭ 86 (-39.44%)
Mutual labels:  logging, debugging
What
Debug-level logging for developers (only!)
Stars: ✭ 73 (-48.59%)
Mutual labels:  logging, debugging
Xcglogger
A debug log framework for use in Swift projects. Allows you to log details to the console (and optionally a file), just like you would have with NSLog() or print(), but with additional information, such as the date, function name, filename and line number.
Stars: ✭ 3,710 (+2512.68%)
Mutual labels:  logging, debugging
Android Remote Debugger
A library for remote logging, database debugging, shared preferences and network requests
Stars: ✭ 132 (-7.04%)
Mutual labels:  logging, debugging
Cocoadebug
iOS Debugging Tool 🚀
Stars: ✭ 3,769 (+2554.23%)
Mutual labels:  logging, debugging
Snoop
A powerful set of Python debugging tools, based on PySnooper
Stars: ✭ 467 (+228.87%)
Mutual labels:  logging, debugging
Clockwork
Clockwork - php dev tools in your browser - server-side component
Stars: ✭ 4,076 (+2770.42%)
Mutual labels:  logging, debugging
Rxjs Spy
A debugging library for RxJS
Stars: ✭ 576 (+305.63%)
Mutual labels:  logging, debugging
Utern
Multi group and stream log tailing for AWS CloudWatch Logs.
Stars: ✭ 241 (+69.72%)
Mutual labels:  logging, debugging
Stern
⎈ Multi pod and container log tailing for Kubernetes -- Friendly fork of https://github.com/wercker/stern
Stars: ✭ 268 (+88.73%)
Mutual labels:  logging, debugging
Wp Rest Api Log
WordPress plugin for logging REST API requests and responses
Stars: ✭ 58 (-59.15%)
Mutual labels:  wordpress, logging
Debug
A tiny JavaScript debugging utility modelled after Node.js core's debugging technique. Works in Node.js and web browsers
Stars: ✭ 9,912 (+6880.28%)
Mutual labels:  logging, debugging

Wonolog

Version Status Build Downloads License

Wonolog

Monolog-based logging package for WordPress.


Table of Contents


Introduction

Wonolog is a Composer package (not a plugin) that allows to log anything that happens in a WordPress site.

It is based on Monolog, which, with its over 38 millions of downloads and thousands of dependent packages, is the most popular logging library for PHP, compatible with the PSR-3 standard.

Minimum Requirements and Dependencies

Wonolog requires:

  • PHP 5.6+
  • WordPress 4.6+

Via Composer, Wonolog requires monolog/monolog (MIT).

When installed for development, via Composer, Wonolog also requires:

  • phpunit/phpunit (BSD-3-Clause)
  • brain/monkey (MIT)
  • mikey179/vfsStream (BSD-3-Clause)

Getting Started

Wonolog should be installed via Composer. Its package name is inpsyde/wonolog.

The suggested way to use Wonolog is at website level.

If you don't use Composer to manage your whole website then Wonolog is probably not for you. You might be able to use it anyway, but support is not guaranteed.

It's easily possible to develop plugins and themes compatible with Wonolog logging even without explicitly declaring it as a dependency.

A couple of noteworthy things:

  • all Wonolog configurations have to be done in a MU plugin;
  • in a WordPress multisite installation, all Wonolog configurations are naturally site-wide.

On the bright side, Wonolog comes with a super easy bootstrap routine and some out-of-the-box configurations that make it possible to have a working and effective logging system with zero effort.

To get started with defaults settings, this is required:

  1. install Wonolog via Composer;
  2. ensure Composer autoload is loaded in wp-config.php or anytime before the 'muplugins_loaded' action is fired;
  3. create a MU plugin that, at least, contains this code:
<?php
Inpsyde\Wonolog\bootstrap();

Wonolog Defaults

The three steps described above are all that is necessary to have a working logging system that uses Monolog to write logs in a file. The path of that file changes based on current date, using the following format:

  • {WP_CONTENT_DIR}/wonolog/{Y/m/d}.log,

with {Y/m/d} being replaced by date( 'Y/m/d' ).

For example, a target file could be /wp-content/2017/02/27.log.

What is actually logged depends on the value of WP_DEBUG_LOG constant.

When WP_DEBUG_LOG is set to true, Wonolog will log everything. When WP_DEBUG_LOG is set to false, Wonolog will only log events with a log level higher or equal to ERROR, according to PSR-3 log levels.

"Automatically" logged events include:

  • PHP core notices, warnings and (fatal) errors;
  • uncaught exceptions;
  • WordPress errors and events (e.g., DB errors, HTTP API errors, wp_mail() errors, and 404 errors).

This is just the default behavior.

The bootstrap() function provides entry points for many configurations and customizations.

Moreover, the package provides both action and filter hooks, and can be configured via environment variables, which makes Wonolog very flexible, and exposes all the power that Monolog provides.

Learn More

Documentation of Wonolog features, defaults, configuration and ways to extends it can be found in separate files:

License and Copyright

Copyright (c) 2017 Inpsyde GmbH.

Wonolog code is licensed under MIT license.

The team at Inpsyde is engineering the Web since 2006.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].