diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a9b4ff..20eb682 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.0.4] - 2024-12-04 + +This update introduces a minor bug fix + + ## [2.0.3] - 2024-11-05 This update introduces a minor bug fix diff --git a/project.json b/project.json index 89f2adc..fdca6f7 100644 --- a/project.json +++ b/project.json @@ -20,7 +20,7 @@ "package": "net.nosial.loglib", "company": "Nosial", "copyright": "Copyright (c) 2022-2023 Nosial", - "version": "2.0.3", + "version": "2.0.4", "uuid": "de1deca6-7b65-11ed-a8b0-a172264634d8" }, "build": { diff --git a/src/LogLib/Handlers/ConsoleLogging.php b/src/LogLib/Handlers/ConsoleLogging.php index 24d67f5..97b683d 100644 --- a/src/LogLib/Handlers/ConsoleLogging.php +++ b/src/LogLib/Handlers/ConsoleLogging.php @@ -208,7 +208,10 @@ class ConsoleLogging implements LogHandlerInterface print('Stack Trace:' . PHP_EOL); foreach($trace as $item) { - print( ' - ' . self::color($item['file'], ConsoleColors::RED) . ':' . $item['line'] . PHP_EOL); + if(isset($item['file']) && isset($item['line'])) + { + print( ' - ' . self::color($item['file'], ConsoleColors::RED) . ':' . $item['line'] . PHP_EOL); + } } }