store method

Future<void> store(
  1. LogEntry entry
)

存储日志

Implementation

Future<void> store(LogEntry entry) async {
  // 内存存储
  if (config.enableMemoryStorage) {
    _storeInMemory(entry);
  }

  // 文件存储
  if (config.enableFileStorage) {
    await _storeInFile(entry);
  }
}