init static method

Future<void> init()

Initializes the DragonLogs system.

This method should be called before any logging operation. It sets up the logger and ensures any old logs that exceed the maximum storage size are deleted.

Implementation

static Future<void> init() async {
  await _logger.init();
  await _logger.logStorage.deleteOldLogs(_maxLogStorageSize);
}