pkg6/log

0.1.0 2023-11-22 16:14 UTC

This package is auto-updated.

Last update: 2024-12-03 11:16:10 UTC


README

composer require pkg6/log

Use

<?php

require 'vendor/autoload.php';
$log = new \Pkg6\Log\Logger([
    new \Pkg6\Log\handler\StreamHandler("./log/text.log"),
]);
$log = new \Pkg6\Log\Logger([
    "console" => new \Pkg6\Log\handler\StreamHandler(),
]);
$log->info("test");