team_logger_io library

The full team_logger API plus file-based log storage (dart:io).

Use this import instead of package:team_logger/team_logger.dart on platforms with file system access (VM, Flutter mobile/desktop). The core team_logger.dart library stays platform-independent.

Classes

AsyncFormatter<Log extends CustomLog, Out extends Object?>
An asynchronous publisher that applies format transformations onto a log before directing it to an output destination.
AsyncFormatterWithBuffer<Log extends CustomLog, Out extends Object?>
An asynchronous publisher that formats buffered batches of logs before generating output.
AsyncFormatterWithBufferAndParam<Param extends Object?, Log extends CustomLog, Out extends Object?>
An asynchronous publisher that applies format transformations onto a batch of parameter-log tuples before directing them to an output destination.
AsyncFormatterWithParam<Param extends Object?, Log extends CustomLog, Out extends Object?>
An asynchronous publisher that formats a parameter-bound log event before dispatching it to an output handler.
AsyncPublisher<Log extends CustomLog>
A publisher that processes log events asynchronously.
AsyncPublisherBase<Log extends CustomLog>
A base class for publishers that process log events asynchronously.
AsyncPublisherWithBuffer<Log extends CustomLog>
An asynchronous publisher that buffers log events and processes them in batches.
AsyncPublisherWithBufferAndParam<Param extends Object?, Log extends CustomLog>
An asynchronous publisher that batches log events along with their associated parameters.
AsyncPublisherWithBufferAndParamBase<Param extends Object?, Log extends CustomLog>
A base class for asynchronous publishers that buffer logs alongside contextual parameters, emitting batches of parameter-log pairs.
AsyncPublisherWithBufferBase<Log extends CustomLog>
A base class for asynchronous publishers that buffer log events before processing them together as a batch list.
AsyncPublisherWithParam<Param extends Object?, Log extends CustomLog>
An asynchronous publisher that handles logs paired with a specific parameter.
AsyncPublisherWithParamBase<Param extends Object?, Log extends CustomLog>
A base class for asynchronous publishers that require an additional parameter alongside the log event.
BbCodeFormatter
Compiles inline BBCode ([b]...[/b], [success]...[/success]) into ANSI escape codes using the theme's message styles.
Closable
An interface for log-event handlers that can be closed.
Color16
Color256
ConsoleLogPrinter
The main console publisher: prints logs using a data-driven row layout.
ControlCodeFormatter
Escapes C0 control characters into visible symbols.
CustomLevelLogger<Logger extends CustomLogger<Logger, LevelLogger, LogFn, Log>, LevelLogger extends CustomLevelLogger<Logger, LevelLogger, LogFn, Log>, LogFn extends Function, Log extends CustomLog>
An abstract base class representing a specific log level for a CustomLogger.
CustomLog
A base representation of a single log event.
CustomLogFormatter<Log extends CustomLog, Out extends Object?>
A convenience implementation of CustomLogPublisher that supports transforming a log event before ultimately emitting it.
CustomLogger<Logger extends CustomLogger<Logger, LevelLogger, LogFn, Log>, LevelLogger extends CustomLevelLogger<Logger, LevelLogger, LogFn, Log>, LogFn extends Function, Log extends CustomLog>
An abstract base class for creating customized loggers.
CustomLogPreFormatter
CustomLogPublisher<Log extends CustomLog>
An interface for publishing or outputting emitted log events.
FileLogCodec
Encodes Logs and session metadata as JSON Lines.
FileLogSession
A single log session: an ordered chain of chunk files.
FileLogSessions
Reader for log sessions stored in a directory by FileLogStorage.
FileLogStorage
A publisher that stores logs on disk, one session per application run.
Flushable
An interface for publishers that can be flushed.
GrowableConstraintsValues
Lazy
Class for lazy evaluation of a value.
LazyString
Class for lazy evaluation of a string value.
LazyStringOrNull
Class for lazy evaluation of a string value or null.
LazyTags
LevelLogger
A single level of a Logger (verbose/debug/info/warning/error/critical).
Levels
Logging levels.
Log
An immutable record of a single log call: sequence number, timestamp, namespace path, message, resolved data, tags, trace ids, error and stack trace.
LogBlock
LogBox
LogConstraints
LogCustomText
LogDepthTheme
LogDivider
Loggable
A mixin describing how a class should look in logs.
LoggableConfig
Конфигурация для objectToString.
LoggableData
LoggableEffectiveConfig
LoggableJsonConfig
Конфигурация для objectToJson.
LoggableMultiData
LoggableMultiView
LoggableNoView
LoggableTypeConverter<T extends Object?>
Конвертер стороннего типа T в LoggableData.
LoggableView
LoggableWrapper
Logger
A namespace logger.
LogLazyStyle
LogLevelName
LogLevels
LogMainTheme
The root theme: six per-level LogThemeDatas plus shared styling (quotes, ellipsis, message/value formatters, trace id and tag styles).
LogMessage
LogNoData
LogNoStyle
LogNum
LogPath
LogPreFormatter
LogRow
One output row of ConsoleLogPrinter: children form the body, tail is right-aligned (typically tags). maxLength limits the width (long content wraps or truncates), maxLines limits the height, when makes the row conditional.
LogStackTrace
LogStorage
An in-memory circular buffer of the last maxCount logs.
LogStorageAdd
LogStorageClear
LogStorageEvent
LogStorageRemove
LogStyle
LogStyles
LogTags
LogTheme
LogThemeData
LogTime
LogTraceId
MultiLogPreFormatter
MultiPublisher<Log extends CustomLog>
A handler that delegates an event to multiple publishers simultaneously.
NoStyle
NullFormatter
Prop<T extends Object?>
Sanitize
Маркеры для LogValueSanitizer.
SanitizeContext
Позиция значения при выводе.
Style
Represents the currently active text style.
TraceId
Идентификатор трассировки в виде: #123 или #Group-123
TransformPublisher<Log extends CustomLog>
A publisher that transforms every log before handing it to the wrapped publisher.
TypedLazy<T extends Object?>
Base class for lazy evaluation of a typed value.
TypeProp

Enums

FileLogDataFormat
How Log.data is written to a session file.
LogTextAlign
LogVerticalAlign

Typedefs

HasFlush = Flushable
The old name of Flushable.
LogFn = bool Function(Object message, {LoggableConfig? config, Object? data, Object? error, String? overridePath, StackTrace? stackTrace, Object? tags, TraceId? traceId, Zone? zone})
LogThemeFormatter<T extends Object?> = String Function(LogTheme theme, T)
LogTransformer<Log extends CustomLog> = Log? Function(Log log)
Transforms a log event before it is published.
LogValueSanitizer = Object? Function(SanitizeContext ctx)
Обрабатывает одно выводимое значение внутри data.