Files
finlog/finlog_app/fluttery/lib/logger/logger.dart

34 lines
1.0 KiB
Dart

import 'package:fluttery/fluttery.dart';
import 'package:logging/logging.dart' as lib;
/// Abstract class for logging service.
/// Provides methods for different log levels and configuration.
abstract class Logger extends Service {
/// Logs an informational message.
///
/// [message] is the information to log.
void info(String message);
/// Logs a warning message.
///
/// [message] is the warning to log.
void warning(String message);
/// Logs an error message with optional error and stack trace.
///
/// [message] is the error message to log.
/// [error] is the optional error object associated with this log entry.
/// [stackTrace] is the optional stack trace associated with this log entry.
void error(String message, [Object? error, StackTrace? stackTrace]);
/// Logs a debug message.
///
/// [message] is the debug message to log.
void debug(String message);
/// Sets the log level for the logger.
///
/// [level] is the new log level to set.
void setLogLevel(lib.Level level);
}