Skip to content

Commit

Permalink
Merge branch 'main' of github.com:halilcosdu/laravel-logweaver
Browse files Browse the repository at this point in the history
  • Loading branch information
halilcosdu committed Apr 16, 2024
2 parents be63cbe + e63c284 commit ca8b8b9
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

All notable changes to `laravel-logweaver` will be documented in this file.

## v1.0.1 - 2024-04-16

This release includes updates to the test suite of the `LogWeaver` class in the Laravel LogWeaver project. The tests have been rewritten using the Pest PHP testing framework, which provides a more expressive and streamlined syntax compared to traditional PHPUnit tests.

The changes include tests for the following functionalities of the `LogWeaver` class:

- Instantiation of the `LogWeaver` class
- Setting the description
- Setting the log resource
- Setting the content
- Setting the level
- Setting the disk
- Setting the directory

Each of these functionalities is tested in isolation to ensure that they work as expected. The tests are designed to be run using the `vendor/bin/pest` command in the terminal.

This release is a part of ongoing efforts to improve the quality and reliability of the Laravel LogWeaver project by ensuring that all major functionalities are covered by automated tests.

## v1.0.0 - 2024-04-16

### Release v1.0.0
Expand Down Expand Up @@ -29,6 +47,7 @@ $log = LogWeaver::description('User logged in')
->level('info')
->toArray();


```
Logging a system error:

Expand All @@ -39,6 +58,7 @@ $log = LogWeaver::description('System error occurred')
->level('error')
->toArray();


```
Logging a critical event:

Expand All @@ -49,6 +69,7 @@ $log = LogWeaver::description('Payment gateway down')
->level('critical')
->toArray();


```
Logging a warning:

Expand All @@ -59,6 +80,7 @@ $log = LogWeaver::description('Disk space running low')
->level('warning')
->toArray();


```
Logging an event with custom disk and directory:

Expand All @@ -71,6 +93,7 @@ $log = LogWeaver::description('User registered')
->directory('custom_logs')
->toArray();


```
#### Installation

Expand All @@ -79,12 +102,14 @@ You can install the package via composer:
```bash
composer require halilcosdu/laravel-logweaver


```
You can publish the config file with:

```bash
php artisan vendor:publish --tag="logweaver-config"


```
#### Testing

Expand All @@ -93,6 +118,7 @@ You can run the tests with:
```bash
composer test


```
#### Changelog

Expand Down

0 comments on commit ca8b8b9

Please sign in to comment.