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 1mo 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 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

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

1949d 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

[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

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

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[dakatsuka/monolog-fluent-handler

Fluentd Handler for Monolog

12480.5k](/packages/dakatsuka-monolog-fluent-handler)[onlime/laravel-http-client-global-logger

A global logger for the Laravel HTTP Client

1935.1k](/packages/onlime-laravel-http-client-global-logger)[yzen.dev/mono-processor

This Processor will display in the logs bread crumbs by which you can more quickly and accurately identify the cause of the error.

116.1k](/packages/yzendev-mono-processor)

PHPackages © 2026

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