Commit graph

16 commits

Author SHA1 Message Date
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
7f2332e228
Fix 2023-10-12 17:16:02 -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
0d92d2a838
Fixed mistake in \LogLib\Classes > Console > outException() where the function attempts to print out a previous exception by calling getPrevious() as an array instead of a function call. 2023-07-06 18:42:25 -04:00
Netkas
a22a9a02a6 Minor correction 2023-03-01 20:29:15 -05:00
Netkas
31ac793273 Minor update 2023-03-01 20:22:35 -05:00
Netkas
30ad2ee1ab Updated Timestamp for analyzing program ticks 2023-03-01 20:22:04 -05:00
Netkas
8bbafd6798 Added PSR 2023-02-10 00:37:39 -05:00
Netkas
220eb43f27 Added environment variable 'LOG_LEVEL' for determining the log level 2023-02-04 04:28:36 -05:00
Netkas
1192db4bbf Various changes 2023-01-29 21:43:44 -05:00
Netkas
d64088fa8a Minor correction 2022-12-31 01:24:29 -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
bd115fcbc0 Added .idea project files
Added .gitignore file
Deleted LogLib.php
2022-12-14 19:18:10 -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
Netkas
c77fb2da6b Added project base 2022-12-13 23:20:53 -05:00