25 lines
598 B
Dart
25 lines
598 B
Dart
import 'package:logger/logger.dart';
|
|
|
|
/// Centralized logger instance for the application.
|
|
///
|
|
/// Usage:
|
|
/// ```dart
|
|
/// import 'package:plezy/utils/app_logger.dart';
|
|
///
|
|
/// appLogger.d('Debug message');
|
|
/// appLogger.i('Info message');
|
|
/// appLogger.w('Warning message');
|
|
/// appLogger.e('Error message', error: e, stackTrace: stackTrace);
|
|
/// ```
|
|
final appLogger = Logger(
|
|
printer: PrettyPrinter(
|
|
methodCount: 2,
|
|
errorMethodCount: 8,
|
|
lineLength: 120,
|
|
colors: true,
|
|
printEmojis: true,
|
|
dateTimeFormat: DateTimeFormat.onlyTimeAndSinceStart,
|
|
),
|
|
level: Level.debug,
|
|
);
|