Commit graph

11 commits

Author SHA1 Message Date
netkas
d6e94ce52e Removed unused Options & RuntimeOptions 2024-10-28 15:28:20 -04:00
netkas
a272396ef9 Add Application class for LogLib 2024-10-28 15:28:11 -04:00
netkas
bd9bf431e7 Refactor to use RuntimeOptions in Console 2024-10-26 00:29:15 -04:00
netkas
fa27ed6405 Rename classes to enums and update usage 2024-10-26 00:18:08 -04:00
951bdb325e
"Refactor logging logic to improve log level and backtrace information
The code has been updated to enhance the way log levels and backtrace information is handled. Changes have been done to ensure the backtrace ignores any calls coming from the LogLib namespace, improving clarity and reducing noise in the log output. Additionally, changes were made to 'colorize' and 'log' methods to adjust the typing of the log level from string to integer, enhancing the consistency of log level usage throughout the code. Removed the Backtrace class that was not serving any purpose after these updates. Tests are also updated to ensure proper functionality."
2023-10-12 23:40:05 -04:00
4fa87c349c
Remove unused ConfigException class, make code style adjustments
Deleted ConfigException class as it was not being used anywhere in the project.
Code style adjustments were made to conform with the PSR-12 coding standard. This includes property and variable naming conventions, use of strict equality operators, reformatting of code and removal of unnecessary comments. The .idea/php.xml file was also updated to a newer version of the library.
Log functions are updated to throw exceptions for non-existent message and invalid level. Also, LogLib is now registered/unregistered  as an exception handler.
Other adjustments were made to achieve consistency in the codebase including renaming properties for clarity, moving magic strings into constants, improving code readability and adding descriptive comments.
2023-10-10 23:29:26 -04:00
Netkas
31ac793273 Minor update 2023-03-01 20:22:35 -05:00
Netkas
1192db4bbf Various changes 2023-01-29 21:43:44 -05:00
Netkas
cdf3eae890 Improved backtracing 2022-12-31 01:23:30 -05:00
Netkas
09141f3d10 Refactored Project, various changes and bug fixes. Implemented file logging 2022-12-22 18:02:41 -05:00
Netkas
ad7dba97d2 Updated project.json
Added Console.php
Added Utilities.php
Added Validate.php
Added \LogLib\Objects > Backtrace
Added \LogLib\Objects > Event
Added \LogLib\Objects > Options
Added \LogLib\Interfaces >  HandlerInterface
Added \LogLib\Abstracts >  LevelType.php
Added \LogLib\Abstracts >  ConsoleColors.php
Added \LogLib\Abstracts > CallType
Added project.json (NCC)
2022-12-14 05:35:54 -05:00