Skip to content

athletics/log-lady

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogLady

Software License

A Monolog plugin for WordPress named in honor of Margaret Lanterman. The plugin makes a PSR-3 logger interface available to WordPress through the implementation of the excellent Monolog.

Installation

Install the latest version with

$ composer require athletics/log-lady

Usage

Require Composer's autoload.php from your theme's functions.php. For example, if composer.json resides at the root of your WordPress install, you might add this to functions.php:

require_once( ABSPATH . 'vendor/autoload.php' );

Use in your theme files by adding the following lines:

<?php

use Athletics\Manifest\LogLady;

$log = new LogLady();
$log->debug( 'Debug!' );

This defaults to a log named LogLady at the path wp-content/log-lady.log with a log level of Debug.

To change any of these defaults, pass the following argument(s) in an array:

  • 'name' => 'LogLady'
  • 'path' => ABSPATH . 'wp-content/log-lady.log'
  • 'level' => 'Logger::DEBUG'

Change log

Please see CHANGELOG for information about what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email wordpress@athleticsnyc.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages