mirror of
https://github.com/hanskokx/arcane_framework.git
synced 2026-05-14 02:19:08 +02:00
Only send log messages to the LoggingInterfaces if the logging service has been initialized
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -240,13 +240,15 @@ class ArcaneLogger {
|
|||||||
|
|
||||||
// Send logs to registered interface(s)
|
// Send logs to registered interface(s)
|
||||||
for (final LoggingInterface i in I._interfaces) {
|
for (final LoggingInterface i in I._interfaces) {
|
||||||
i.log(
|
if (initialized) {
|
||||||
message,
|
i.log(
|
||||||
level: level,
|
message,
|
||||||
metadata: metadata,
|
level: level,
|
||||||
stackTrace: stackTrace,
|
metadata: metadata,
|
||||||
extra: extra,
|
stackTrace: stackTrace,
|
||||||
);
|
extra: extra,
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_logStreamController.add(
|
_logStreamController.add(
|
||||||
|
|||||||
Reference in New Issue
Block a user