Download the PHP package buzzlightyear/colour-logger without Composer
On this page you can find all versions of the php package buzzlightyear/colour-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download buzzlightyear/colour-logger
More information about buzzlightyear/colour-logger
Files in buzzlightyear/colour-logger
Package colour-logger
Short Description A powerful, fluent API for colored logging in Laravel applications, built on top of Monolog.
License MIT
Informations about the package colour-logger
ColourLogger
ColourLogger is a powerful, fluent API for coloured logging in PHP applications, leveraging Monolog to enhance readability and focus during development by adding coloured and styled text capabilities to console logging.
Features
- Easy integration with any Laravel application.
- Fluent interface to configure foreground and background colours, as well as text styles such as bold, italic, and underline.
- Built on top of the robust Monolog logging library.
- Support for logging complex data types including arrays and objects, with optional pretty-print JSON formatting.
Installation
Install ColourLogger via Composer:
Usage
Here is how you can use ColourLogger in your PHP projects:
Customize Colours
You can easily customize the colours by accessing the colour_map
array within the ColourLogger
class. Modify this array to include your preferred ANSI colour codes.
Contributing
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
To contribute to ColourLogger, follow these steps:
- Fork the project repository.
- Create a new branch (
git checkout -b feature/AmazingFeature
). - Make your changes.
- Commit your changes (
git commit -m 'Add some AmazingFeature'
). - Push to the branch (
git push origin feature/AmazingFeature
). - Open a pull request.
License
Distributed under the MIT License. See LICENSE
file for more information.
Contact
Project Link: https://github.com/buzzlightyear1309/colour-logger