ghost_logger library

Ghost Logger - Stealing errors before they steal your users' experience.

Ghost Logger provides centralized logging with multiple output mechanisms, optional crash reporting integration, and clean emoji-based visual indicators.

Works invisibly in the background, logging to terminal and automatically reporting to crash services without your interference.

Quick Start

import 'package:ghost_logger/ghost_logger.dart';

void main() async {
  await GhostLogger.configure(
    isDebugMode: true,
    loggerType: LoggerType.console,
  );

  GhostLogger.log(
    message: 'App started',
    level: LogLevel.info,
    tag: 'Main',
  );
}

Classes

CrashReporter
Abstract interface for crash reporting services.
GhostLogger
A lightweight, flexible logging utility with optional crash reporting.
NullCrashReporter
No-op implementation for when crash reporting is disabled.

Enums

LogExportScope
Controls which log files are returned by GhostLogger.exportLogs.
LoggerType
Defines the output mechanism for log messages.
LogLevel
Represents the severity level of a log message.

Extensions

LogLevelExtension on LogLevel
Extension providing utilities for LogLevel enumeration.