NdkLogger class

Core logger implementation.

This logger supports:

  • Multiple log outputs (console, file, network, etc.)
  • Configurable log levels
  • WASM compatibility (no dart:io dependency)

Constructors

NdkLogger({required LogLevel level, List<LogOutput>? outputs})
Constructor

Properties

hashCode int
The hash code for this object.
no setterinherited
level LogLevel
Current minimum log level
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addOutput(LogOutput output) → void
Add an output to the logger
clearOutputs() → void
Clear all outputs
close() → void
Close the logger and cleanup all outputs
d(dynamic message, {Object? error, StackTrace? stackTrace}) → void
Log a debug message
e(dynamic message, {Object? error, StackTrace? stackTrace}) → void
Log an error message
f(dynamic message, {Object? error, StackTrace? stackTrace}) → void
Log a fatal message
i(dynamic message, {Object? error, StackTrace? stackTrace}) → void
Log an info message
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeOutput(LogOutput output) → void
Remove an output from the logger
t(dynamic message, {Object? error, StackTrace? stackTrace}) → void
Log a trace message
toString() String
A string representation of this object.
inherited
w(dynamic message, {Object? error, StackTrace? stackTrace}) → void
Log a warning message

Operators

operator ==(Object other) bool
The equality operator.
inherited