PHPackages                             seyfer/kohana-minion-log - 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. seyfer/kohana-minion-log

ActiveKohana-module[Logging &amp; Monitoring](/categories/logging)

seyfer/kohana-minion-log
========================

Kohana module to log while in CLI environment

116PHP

Since Jan 9Pushed 11y ago2 watchersCompare

[ Source](https://github.com/seyfer/kohana-minion-log)[ Packagist](https://packagist.org/packages/seyfer/kohana-minion-log)[ RSS](/packages/seyfer-kohana-minion-log/feed)WikiDiscussions 3.3/master Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

minion-log
==========

[](#minion-log)

`minion-log` is an extension for [Kohana Minion](https://github.com/kohana-minion/core) to more easily handle logging from the command line.

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

[](#installation)

`minion-log` should be added to your Kohana `MODPATH` directory. Then enable it in the `modules` section of your bootstrap.

Requirements
------------

[](#requirements)

- [kohana-minion](https://github.com/kohana-minion/core) is not strictly required, but this was written with minion/command line interfaces in mind.

Compatibility
-------------

[](#compatibility)

- Written for Kohana 3.3 and 3.2.

Usage
-----

[](#usage)

This module extends the Kohana `Log` class and can be used in the same manner. Remember that you'll need to attach `Log_Writer`s.

### Write On Add

[](#write-on-add)

The main addition in this module is the ability to write to a given writer as soon as the `$log->add()` method is called. This is useful in CLI situations where you may be writing to multiple writers. For example, you may want to have output written immediately to StdOut, but delay writing to a Log File to avoid hammering system I/O.

This works by passing an optional fourth additional parameter to `$log->attach()`. If the parameter is `TRUE`, output to that log writer will be written immediatly as soon as $log-&gt;add() is called. If the parameter is `FALSE` (default), output won't be written until $log-&gt;write() is called.

### Example

[](#example)

This is an example of using Minion\_Log:

```
$log = Minion_Log::instance(); // Or, just new Minion_Log

// Add the log file writer
$log->attach(new Log_File(APPPATH.'logs'));

// Add StdOut.  Pass the other default parameters and the new $write_on_add parameter
$log->attach(new Log_StdOut, array(), 0, TRUE);

// This will immediately write to StdOut.
// Output will be buffered for the log file until $log->write() is called or the shutdown function is called
$log->add('Foobar');

// This will write to the log file, but not to StdOut (since that output was pushed immediately)
$log->write();

```

Testing
-------

[](#testing)

This module is unittested using the [unittest module](http://github.com/kohana/unittest). You can use the `minion.log` group to only run minion log tests. It is also grouped under `minion`.

i.e.

```
phpunit --group minion.log

```

Bugs? Issues?
-------------

[](#bugs--issues)

That's why this is hosted on github :). Feel free to fork it, submit issues, or patches.

License
-------

[](#license)

This is licensed under the [same license as Kohana](http://kohanaframework.org/license).

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/71775d95a4c19f629135c951e986592c79f63ed0f38c4eabfa767f5144909ea9?d=identicon)[seyfer](/maintainers/seyfer)

---

Top Contributors

[![seyfer](https://avatars.githubusercontent.com/u/1483925?v=4)](https://github.com/seyfer "seyfer (3 commits)")[![awbn](https://avatars.githubusercontent.com/u/603836?v=4)](https://github.com/awbn "awbn (2 commits)")

### Embed Badge

![Health badge](/badges/seyfer-kohana-minion-log/health.svg)

```
[![Health](https://phpackages.com/badges/seyfer-kohana-minion-log/health.svg)](https://phpackages.com/packages/seyfer-kohana-minion-log)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.5k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M277](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M343](/packages/open-telemetry-sdk)

PHPackages © 2026

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