diff --git a/lib/src/services/logging/logging_service.dart b/lib/src/services/logging/logging_service.dart index 6fb0198..6994add 100644 --- a/lib/src/services/logging/logging_service.dart +++ b/lib/src/services/logging/logging_service.dart @@ -333,12 +333,12 @@ class ArcaneLogger { /// Initializes all registered [LoggingInterface]s by calling their /// [LoggingInterface.init] methods. Future initializeInterfaces() async { - if (!initialized) await _init(); - if (I._interfaces.isEmptyOrNull) { throw Exception("No logging interfaces have been registered."); } + if (!initialized) await _init(); + for (final LoggingInterface i in I._interfaces) { if (!i.initialized) await i.init(); }