Download the PHP package agungdhewe/phplogger without Composer
On this page you can find all versions of the php package agungdhewe/phplogger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package phplogger
PHP Logger
Simple logger for php
Install
composer require agungdhewe/phplogger
Example
Output to Screen and record in log.txt
use AgungDhewe\PhpLogger\Log;
Log::Info("Hello World");
Log::Debug("test debug");
Output to File Only
use AgungDhewe\PhpLogger\Log;
use AgungDhewe\PhpLogger\Logger;
use AgungDhewe\PhpLogger\LoggerOutput;
Logger::SetOutput(LoggerOutput::FILE);
Log::Info("Hello World");
Log::Debug("test debug");
Log::Error("test error");
Change log filename
use AgungDhewe\PhpLogger\Log;
use AgungDhewe\PhpLogger\Logger;
use AgungDhewe\PhpLogger\LoggerOutput;
Logger::SetOutput(LoggerOutput::FILE);
Logger::SetFilepath(__DIR__ . "/myownlog.txt");
Log::Info("Hello World");
Log::Debug("test debug");
Log::Error("test error");All versions of phplogger with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
The package agungdhewe/phplogger contains the following files
Loading the files please wait ...