Commit graph

86 commits

Author SHA1 Message Date
netkas
dd78dccab2 Refactor directory creation error handling 2024-10-28 19:59:34 -04:00
netkas
6f61db996c Add error and shutdown handlers 2024-10-28 19:56:13 -04:00
netkas
735dc7b33e Removed unused LoggingException 2024-10-28 19:47:20 -04:00
netkas
7e779ab41b Refactor logging utility functions 2024-10-28 19:43:10 -04:00
netkas
709729df14 Added documentation to FileLogging 2024-10-28 19:38:20 -04:00
netkas
8f9333a273 Removed unused LogHandlerType 2024-10-28 19:37:51 -04:00
netkas
15f55b870d Updated CHANGELOG.md 2024-10-28 19:36:45 -04:00
netkas
3bf6b70526 Added Logger object for constructing a logging instance for an application 2024-10-28 19:36:26 -04:00
netkas
e35eb46873 Updated CHANGELOG.md 2024-10-28 15:33:17 -04:00
netkas
81ee234540 Refactor logging methods and utility functions 2024-10-28 15:29:57 -04:00
netkas
dec96d85e1 Add LogHandlerInterface and related types 2024-10-28 15:29:46 -04:00
netkas
9d0dbad846 Add FileLogging and FileLock classes 2024-10-28 15:29:14 -04:00
netkas
f3d0412525 Add console logging handler 2024-10-28 15:28:51 -04:00
netkas
e5b0bb6012 Remove unused BRIGHT_COLORS constant from ConsoleColors 2024-10-28 15:28:34 -04:00
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
b08b878e9a Removed Console.php 2024-10-28 15:27:51 -04:00
netkas
38fc3295c2 Bumped version to 2.0.0 due to the many major changes 2024-10-28 13:05:11 -04:00
netkas
7b0de0cb7f Updated CHANGELOG.md 2024-10-26 00:29:24 -04:00
netkas
bd9bf431e7 Refactor to use RuntimeOptions in Console 2024-10-26 00:29:15 -04:00
netkas
8f413a9aae Updated CHANGELOG.md 2024-10-26 00:18:42 -04:00
netkas
fa27ed6405 Rename classes to enums and update usage 2024-10-26 00:18:08 -04:00
netkas
2dd8f912b2 Updated php.xml 2024-10-25 20:10:44 -04:00
netkas
e5ce8cdc01 Set default log level to 'info' in Utilities. instead of using null due to deprecation error 2024-10-25 20:10:40 -04:00
netkas
cf4041f47b Bumped version to 1.1.2 2024-10-25 20:10:05 -04:00
8d5d443792 Updated build system 2024-10-13 16:40:55 -04:00
edcd01d4df Bumped version to 1.1.1 2024-10-13 16:40:12 -04:00
a74a9664da Updated project.json 2024-10-13 16:39:34 -04:00
91c79ab3de Merge branch 'master' into dev 2024-10-13 16:36:45 -04:00
0f50faee8f Updated Build System 2024-10-13 16:36:35 -04:00
e8fb624e19
Updated README.md 2023-10-12 23:45:34 -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
7f2332e228
Fix 2023-10-12 17:16:02 -04:00
3e9606c184
Updated .gitlab-ci.yml 2023-10-12 00:35:39 -04:00
26ef269e91
Updated CHANGELOG.md 2023-10-11 18:53:26 -04:00
f4890f90b9
Updated project.json 2023-10-11 18:50:33 -04:00
42bd16d5ee
Updated README.md formatting 2023-10-11 18:49:54 -04:00
d5831486eb
Updated LICENSE formatting 2023-10-11 18:46:27 -04:00
adfef954d1
Remove NCC Build GitHub workflow 2023-10-11 18:44:40 -04:00
7b8b636d37
Update .gitlab-ci.yml to simplify build stage
Removed the 'ncc project install' script from the build stage in the '.gitlab-ci.yml'. Debugging showed it was not necessary for the building process when not building statically
2023-10-11 18:38:48 -04:00
1a4d2ff726
Streamline CI pipeline by explicit project installation
This commit removes an unused 'prepare' stage from '.gitlab-ci.yml' and includes 'ncc project install' in the build scripts. The intention is to improve the CI/CD flow by installing project dependencies directly in the build phases, preventing possible build failures due to missing dependencies.
2023-10-11 18:35:01 -04:00
0311fcf3f0
Remove unused run configuration and update CI pipeline
This commit removes 'Install.xml' run configuration, which is no longer used or necessary in the project. The '.gitlab-ci.yml' file has also been updated to include a new 'prepare' stage in the pipeline. This modification was done to streamline and improve the CI/CD process by explicitly installing necessary project dependencies before the build phase begins.
2023-10-11 17:49:15 -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
892c4c7ad7
Bumped version to 1.1.0 and updated project.json 2023-09-29 02:22:07 -04:00
56b06dee4f
Updated CHANGELOG.md 2023-07-06 18:43:18 -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
Zi Xing
881145c1cb
Update ncc.yml
Final changes to ncc.yml
2023-03-05 14:26:20 -05:00
Zi Xing
0eccff4144
Update ncc.yml
Removed extensions
2023-03-05 14:20:53 -05:00
Zi Xing
d73bb9a6c7
Update ncc.yml
Trying sudo
2023-03-05 14:19:09 -05:00
Zi Xing
f66425596a
Created ncc.yml
Test for CI integrations in GitHub
2023-03-05 14:17:20 -05:00