PHPackages                             lushobarlett/cologger - 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. lushobarlett/cologger

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

lushobarlett/cologger
=====================

simple logger

v2.0.1(5y ago)03171MITPHPPHP ^7.2CI failing

Since Feb 15Pushed 5y agoCompare

[ Source](https://github.com/lushoBarlett/cologger)[ Packagist](https://packagist.org/packages/lushobarlett/cologger)[ RSS](/packages/lushobarlett-cologger/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (4)Used By (1)

CoLogger
========

[](#cologger)

Very simple PHP Logger with colors

Use
---

[](#use)

By default the logger will output to a file in the directory that the file resides in with the name 'cologger.log'.

This (and console output) can be changed.

The class uses Linux console text modifiers ( \\e\[...m ), this has not been tested on Windows.

Notice: to write to a file, the process trying to do it needs to have file creation and file writing permissions.

### Functions

[](#functions)

```
$logger = new Logger;

$logger->error("error");
$logger->warning("warning");
$logger->notice("notice");
$logger->log("normal");
```

Errors will be red, Warnings will be orange, Notices will be green and Logs will be white. Each log will be placed in a new line with data about the date and time of logging.

### Parameters

[](#parameters)

The first parameter is a string representing the location of the file. The second argument is a boolean, defaulted to false, to write to console instead.

```
$logger = new Logger("mytarget.log");

$console = new Logger("doesn't matter", true);
```

Future Features
---------------

[](#future-features)

- Formatting the log metadata.
- Changing the color scheme.
- Adding color to the message itself (without doing it by hand)
- Quick and better way to change logging targets

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~192 days

Total

3

Last Release

1891d ago

Major Versions

v1.0.0 → v2.0.02020-03-24

PHP version history (2 changes)v2.0.0PHP ^7.3.0

v2.0.1PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed31e80ac855756b0b2e02c39e6e6e0692c134ec177e378bd19beeadf23ef271?d=identicon)[lushoBarlett](/maintainers/lushoBarlett)

---

Top Contributors

[![lushoBarlett](https://avatars.githubusercontent.com/u/37297979?v=4)](https://github.com/lushoBarlett "lushoBarlett (12 commits)")

---

Tags

logloggingcolorlogger

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lushobarlett-cologger/health.svg)

```
[![Health](https://phpackages.com/badges/lushobarlett-cologger/health.svg)](https://phpackages.com/packages/lushobarlett-cologger)
```

###  Alternatives

[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k6](/packages/inpsyde-wonolog)[amphp/log

Non-blocking logging for PHP based on Amp, Revolt, and Monolog.

402.6M70](/packages/amphp-log)[apix/log

Minimalist, thin and fast PSR-3 compliant (multi-bucket) logger.

511.0M18](/packages/apix-log)[logtail/monolog-logtail

Logtail handler for Monolog

233.2M3](/packages/logtail-monolog-logtail)[dakatsuka/monolog-fluent-handler

Fluentd Handler for Monolog

12480.5k](/packages/dakatsuka-monolog-fluent-handler)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
