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."
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
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.
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.
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.