PHPackages                             veronalabs/logger-wp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. veronalabs/logger-wp

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

veronalabs/logger-wp
====================

Logger for WordPress Based on PSR-3

v1.1(3y ago)61.2k↓46.7%11MITPHP

Since Jun 20Pushed 3y ago3 watchersCompare

[ Source](https://github.com/veronalabs/logger-wp)[ Packagist](https://packagist.org/packages/veronalabs/logger-wp)[ RSS](/packages/veronalabs-logger-wp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (1)

LoggerWP - Logger for WordPress Based on PSR-3
==============================================

[](#loggerwp---logger-for-wordpress-based-on-psr-3)

[![Total Downloads](https://camo.githubusercontent.com/8e5ab262a8aa33594d75b67a3c1880b09242b35588de15f5fb239d3721c8e0a4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7665726f6e616c6162732f6c6f676765722d77702e737667)](https://packagist.org/packages/veronalabs/logger-wp)[![Latest Stable Version](https://camo.githubusercontent.com/30f3fa0eb518889fcd20f3a3899d692e15a0ab46cf89379d158836143f627905/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7665726f6e616c6162732f6c6f676765722d77702e737667)](https://packagist.org/packages/veronalabs/logger-wp)

[![alt text](https://camo.githubusercontent.com/4845b7d0dc9193f937686a67c0f2c71b016450d63dc2caa0dfe88568dae3ae05/68747470733a2f2f692e6962622e636f2f4d70764d5159532f73637265656e73686f742d776f726470726573732d6465762d323032322d30362d31342d31392d33312d33362e706e67)](https://camo.githubusercontent.com/4845b7d0dc9193f937686a67c0f2c71b016450d63dc2caa0dfe88568dae3ae05/68747470733a2f2f692e6962622e636f2f4d70764d5159532f73637265656e73686f742d776f726470726573732d6465762d323032322d30362d31342d31392d33312d33362e706e67)

LoggerWP sends your logs to wp-content directory.

This library implements the [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md)interface that you can type-hint against in your own libraries to keep a maximum of interoperability.

Features
--------

[](#features)

- Protect the log files by .htaccess and hash the file name
- Support custom channel name
- Support custom log directory name
- Support admin log viewer
- Support PHP errors handler (TODO)
- Support logger exception handler

Installation
------------

[](#installation)

Install the latest version with

```
composer require veronalabs/logger-wp
```

Basic Usage
-----------

[](#basic-usage)

```
