Download the PHP package izusoft/log-message without Composer
On this page you can find all versions of the php package izusoft/log-message. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download izusoft/log-message
More information about izusoft/log-message
Files in izusoft/log-message
Download izusoft/log-message
More information about izusoft/log-message
Files in izusoft/log-message
Vendor izusoft
Package log-message
Short Description Allows you to create logs in an arbitrary file, works with strings, arrays, objects.
License MIT
Package log-message
Short Description Allows you to create logs in an arbitrary file, works with strings, arrays, objects.
License MIT
Please rate this library. Is it a good library?
Informations about the package log-message
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
Require this package in your composer.json and update composer. This will download the package.
composer require izusoft/log-message
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
All versions of log-message with dependencies
PHP Build Version
Package Version
The package izusoft/log-message contains the following files
Loading the files please wait ....