ISyncLoggerDebugProvider class abstract
Níveis de log do sistema de sincronização Entrada de log do sistema de sincronização Interface para provedor de logging do sistema de sincronização
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Verifica se o logger está inicializado
no setter
-
logStream
→ Stream<
SyncLogDebug> -
Stream para monitorar novos logs
no setter
- minLevel → SyncLogDebugLevel
-
Obtém o nível mínimo de log atual
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearAllLogs(
) → Future< void> - Limpa todos os logs
-
clearOldLogs(
{Duration? olderThan, int? keepLast}) → Future< void> - Limpa logs antigos
-
close(
) → Future< void> - Fecha o sistema de logging
-
debug(
String message, {String? category, String? tag, Map< String, dynamic> ? metadata}) → void - Registra um log de debug
-
error(
String message, {String? category, String? tag, Map< String, dynamic> ? metadata, String? stackTrace, Object? exception}) → void - Registra um log de erro
-
exportLogs(
{String? filePath, DateTime? since, SyncLogDebugLevel? minLevel}) → Future< String> - Exporta logs para arquivo
-
fatal(
String message, {String? category, String? tag, Map< String, dynamic> ? metadata, String? stackTrace, Object? exception}) → void - Registra um log fatal
-
getAllLogs(
{int? limit, DateTime? since, SyncLogDebugLevel? minLevel}) → Future< List< SyncLogDebug> > - Obtém todos os logs
-
getLogsByCategory(
String category, {int? limit, DateTime? since}) → Future< List< SyncLogDebug> > - Obtém logs por categoria
-
getLogsByLevel(
SyncLogDebugLevel level, {int? limit, DateTime? since}) → Future< List< SyncLogDebug> > - Obtém logs por nível
-
getLogsByTag(
String tag, {int? limit, DateTime? since}) → Future< List< SyncLogDebug> > - Obtém logs por tag
-
getLogStatistics(
) → Future< Map< String, dynamic> > - Obtém estatísticas dos logs
-
info(
String message, {String? category, String? tag, Map< String, dynamic> ? metadata}) → void - Registra um log de informação
-
initialize(
SyncLoggerDebugConfig config) → Future< void> - Inicializa o sistema de logging
-
log(
SyncLogDebug entry) → void - Registra uma entrada de log personalizada
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sanitizeData(
Map< String, dynamic> data) → Map<String, dynamic> - Sanitiza dados removendo informações sensíveis
-
setMinLevel(
SyncLogDebugLevel level) → void - Configura o nível mínimo de log
-
setSensitiveFields(
List< String> fields) → void - Configura filtros de dados sensíveis
-
toString(
) → String -
A string representation of this object.
inherited
-
uploadLogs(
{DateTime? since, SyncLogDebugLevel? minLevel}) → Future< bool> - Envia logs para servidor remoto
-
warning(
String message, {String? category, String? tag, Map< String, dynamic> ? metadata}) → void - Registra um log de aviso
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited