PHPackages                             izusoft/log-message - 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. izusoft/log-message

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

izusoft/log-message
===================

Allows you to create logs in an arbitrary file, works with strings, arrays, objects.

1.1(5y ago)0791MITPHPPHP ^7.4 || ^8.0

Since Apr 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/izusoft/log-message)[ Packagist](https://packagist.org/packages/izusoft/log-message)[ RSS](/packages/izusoft-log-message/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

Laravel Logger
==============

[](#laravel-logger)

Allows you to create logs in an arbitrary file, works with strings, arrays, objects. Log-message supports the maximum output level limit. When we want to print a big object, this will help us get a clean dumping data.

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

[](#installation)

Require this package in your composer.json and update composer. This will download the package.

```
composer require izusoft/log-message

```

Usage
-----

[](#usage)

include the LogMessage class at top.

```
use LogMessage;

$file = 'file-name';
$message = 'log message'; // string|array|object
$context = (object) [ // string|array|object default=null
   'level1' => [
       'level2' => [
           'level3' => [
               'some' => 'context'
           ]
       ]
   ],
   'some' => 'context'
];
$nesting = 2; // default = 5

LogMessage::debug($file, $message, $context, $nesting);
LogMessage::info($file, $message, $context, $nesting);
LogMessage::notice($file, $message, $context, $nesting);
LogMessage::warning($file, $message, $context, $nesting);
LogMessage::error($file, $message, $context, $nesting);
LogMessage::critical($file, $message, $context, $nesting);
LogMessage::alert($file, $message, $context, $nesting);
LogMessage::emergency($file, $message, $context, $nesting);

```

example result:

```
[2020-04-26 16:48:45] file-name.DEBUG: log message
```
stdClass Object
(
    'level1' => Array
        (
            level2 => Array
                *MAX LEVEL*

        )

    'some' => context
)

```

```

###  Health Score

28

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~262 days

Total

2

Last Release

2041d ago

PHP version history (2 changes)1.0PHP ^7.2

1.1PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13946785?v=4)[Igor Zubarev](/maintainers/izusoft)[@izusoft](https://github.com/izusoft)

---

Top Contributors

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

---

Tags

laravelloggerloglaravelloggingloggerlaravel7Laravel loglog-messagelog-to-filelog-to-channels

### Embed Badge

![Health badge](/badges/izusoft-log-message/health.svg)

```
[![Health](https://phpackages.com/badges/izusoft-log-message/health.svg)](https://phpackages.com/packages/izusoft-log-message)
```

###  Alternatives

[logtail/monolog-logtail

Logtail handler for Monolog

243.8M3](/packages/logtail-monolog-logtail)[saasscaleup/laravel-log-alarm

Laravel log Alarm help you to set up alarm when errors occur in your system and send you a notification via Slack and email

26831.2k](/packages/saasscaleup-laravel-log-alarm)[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

62553.7k1](/packages/ytake-laravel-fluent-logger)[naoray/laravel-github-monolog

Log driver to store logs as github issues

10924.7k](/packages/naoray-laravel-github-monolog)[onlime/laravel-http-client-global-logger

A global logger for the Laravel HTTP Client

2040.3k](/packages/onlime-laravel-http-client-global-logger)[mhcg/monolog-wp-cli

Extension for Monolog to support outputting to WP-CLI (The WordPress command line interface) when running wp command lines.

10114.8k1](/packages/mhcg-monolog-wp-cli)

PHPackages © 2026

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