Various changes

This commit is contained in:
Netkas 2023-01-29 21:43:44 -05:00
parent 5fabf8df83
commit 1192db4bbf
14 changed files with 64 additions and 437 deletions

View file

@ -0,0 +1,21 @@
<?php
use LogLib\Abstracts\LevelType;
use LogLib\Log;
use LogLib\Objects\Options;
require('ncc');
import('net.nosial.loglib', 'latest');
$options = new Options('net.nosial.optslib');
Log::register($options);
Log::registerExceptionHandler();
Log::debug('net.nosial.optslib', 'This is a debug message');
Log::verbose('net.nosial.optslib', 'This is a verbose message');
Log::info('net.nosial.optslib', 'This is an info message');
Log::warning('net.nosial.optslib', 'This is a warning message');
Log::error('net.nosial.optslib', 'This is an error message');
Log::fatal('net.nosial.optslib', 'This is a fatal message');
throw new Exception('This is an exception');

View file

@ -8,7 +8,6 @@
import('net.nosial.loglib', 'latest');
$options = new Options('net.nosial.optslib');
$options->enableWriteToPackageData();
Log::register($options);
Log::debug('net.nosial.optslib', 'This is a debug message');