- Added the `extra` parameter to the `Arcane.log` shortcut method

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2024-10-04 14:40:04 +02:00
parent 79a1840cc6
commit c6377e2efe
3 changed files with 8 additions and 1 deletions
+4
View File
@@ -1,3 +1,7 @@
## 1.0.8
- Added the `extra` parameter to the `Arcane.log` shortcut method
## 1.0.7 ## 1.0.7
- Added the `extra` parameter to the `LoggingInterface` - Added the `extra` parameter to the `LoggingInterface`
+3
View File
@@ -64,6 +64,7 @@ class Arcane {
/// `Level.debug`. /// `Level.debug`.
/// - [stackTrace]: Optional stack trace information. /// - [stackTrace]: Optional stack trace information.
/// - [metadata]: Optional additional metadata in key-value pairs. /// - [metadata]: Optional additional metadata in key-value pairs.
/// - [extra]: Optional data passed to the logger.
static void log( static void log(
String message, { String message, {
String? module, String? module,
@@ -71,6 +72,7 @@ class Arcane {
Level level = Level.debug, Level level = Level.debug,
StackTrace? stackTrace, StackTrace? stackTrace,
Map<String, String>? metadata, Map<String, String>? metadata,
Object? extra,
}) { }) {
ArcaneLogger.I.log( ArcaneLogger.I.log(
message, message,
@@ -79,6 +81,7 @@ class Arcane {
level: level, level: level,
stackTrace: stackTrace, stackTrace: stackTrace,
metadata: metadata, metadata: metadata,
extra: extra,
); );
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
name: arcane_framework name: arcane_framework
description: "Agnostic Reusable Component Architecture for New Ecosystems: a modern framework for bootstrapping new applications" description: "Agnostic Reusable Component Architecture for New Ecosystems: a modern framework for bootstrapping new applications"
version: 1.0.7 version: 1.0.8
repository: https://github.com/hanskokx/arcane_framework repository: https://github.com/hanskokx/arcane_framework
issue_tracker: https://github.com/hanskokx/arcane_framework/issues issue_tracker: https://github.com/hanskokx/arcane_framework/issues