WP Manifestindependent plugin directory

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/beapi/bea-logger/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Basic and simple logger for WordPress.

Usage

$logger = new Bea_Log( WP_CONTENT_DIR . '/my-logger' );
$logger->log_this( 'Log this message', Bea_Log::gravity_0 );

Produces a line like:

[d-m-Y H:i:s][Emerg] Log this message

Constructor

new Bea_Log( $file_path, $file_extension = '.log', $retention_size = '', $write_enabled = true );
  • $file_path: base path without extension.
  • $file_extension: file extension including the dot (default .log).
  • $retention_size: max file size in bytes before rotation (default 419430400, ~400 MB).
  • $write_enabled: when false, log_this() is a no-op (no disk I/O).

Rotation & compression

When the log file exceeds $retention_size, it is renamed to {file_path}-{Y-m-d-H-i-s}{ext} and, when ZipArchive is available, compressed into a sibling .zip (the plain rotated file is then removed).

Gravity levels

const gravity_0 = 'Emerg';
const gravity_1 = 'Alert';
const gravity_2 = 'Crit';
const gravity_3 = 'Err';
const gravity_4 = 'Warning';
const gravity_5 = 'Notice';
const gravity_6 = 'Info';
const gravity_7 = 'Debug';

Default level is gravity_7 (Debug).

Releases

2 releases.

Tag
Published
0.4 latest
May 20, 2026 5mo ago
0.3
Nov 14, 2017 8 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A grade

Security

BEA lOGGER 0.4 · audited by WP Registry

No security issues found.

Audited release
0.4
Findings
none
Worst severity
—
Content hash
48ec81b05da98f3f751b5611…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.