https://github.com/ismoreirakt/pogger
PHP library for log generation and management.
https://github.com/ismoreirakt/pogger
logging logging-library php php-library
Last synced: about 1 year ago
JSON representation
PHP library for log generation and management.
- Host: GitHub
- URL: https://github.com/ismoreirakt/pogger
- Owner: IsMoreiraKt
- License: mit
- Created: 2025-04-08T02:24:24.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-09T09:44:04.000Z (about 1 year ago)
- Last Synced: 2025-04-09T15:16:56.883Z (about 1 year ago)
- Topics: logging, logging-library, php, php-library
- Language: PHP
- Homepage: https://packagist.org/packages/ismoreirakt/pogger
- Size: 147 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pogger
Pogger is a simple and flexible PHP logging library that provides various log levels and output channels. You can easily integrate it into your PHP projects to manage and customize log messages in different ways.
## How to Install
### With Composer
If you're using Composer in your project (which you should), just run:
```bash
composer require ismoreirakt/pogger
```
This will download the latest stable release and make Pogger available through autoload.
### Without Composer
If you're not using Composer globally or prefer to clone the repo directly:
#### Prerequisites
To use Pogger, you need the following:
1. **PHP**: 7.4 or higher is recommended;
2. **Composer**: For managing dependencies;
#### Clone de Repository
```bash
git clone --branch v0.0.1 --depth 1 https://github.com/IsMoreiraKt/Pogger
cd Pogger
```
#### Installing Dependencies
Inside the project directory, install the required dependencies:
```bash
composer install
```
You can now include the library manually in your code or set up autoloading via vendor/autoload.php.
## How to Use the Library
Pogger provides a Log class with static methods for logging messages at various levels. You can use the library with just a few lines of code.
#### Example Usage:
```php
$exception,
'file' => $file
]
);
```
## License
This project is released under the [MIT license](./LICENSE).