FCPLoggingService class
Logging service for the Flutter Components Plus package
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
FCPLogListener listener) → void - Add log listener
-
clearListeners(
) → void - Clear all listeners
-
clearLogs(
) → void - Clear log buffer
-
debug(
String message, {String? tag, Map< String, dynamic> ? data}) → void - Log debug message
-
error(
String message, {String? tag, Map< String, dynamic> ? data, Object? error, StackTrace? stackTrace}) → void - Log error message
-
exportLogs(
) → String - Export logs to string
-
exportLogsToJson(
) → String - Export logs to JSON
-
fatal(
String message, {String? tag, Map< String, dynamic> ? data, Object? error, StackTrace? stackTrace}) → void - Log fatal message
-
getLogEntries(
) → List< FCPLogEntry> - Get all log entries
-
getLogEntriesByLevel(
FCPLogLevel level) → List< FCPLogEntry> - Get log entries by level
-
getLogEntriesByTag(
String tag) → List< FCPLogEntry> - Get log entries by tag
-
getRecentLogEntries(
int count) → List< FCPLogEntry> - Get recent log entries
-
info(
String message, {String? tag, Map< String, dynamic> ? data}) → void - Log info message
-
logApiCall(
String endpoint, {Map< String, dynamic> ? data}) → void - Log API call
-
logHttpRequest(
String method, String url, {Map< String, dynamic> ? data}) → void - Log HTTP request
-
logHttpResponse(
int statusCode, String url, {Map< String, dynamic> ? data}) → void - Log HTTP response
-
logPerformance(
String metric, Duration duration, {Map< String, dynamic> ? data}) → void - Log performance metric
-
logUserAction(
String action, {Map< String, dynamic> ? data}) → void - Log user action
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeListener(
FCPLogListener listener) → void - Remove log listener
-
setConsoleOutput(
bool enabled) → void - Enable/disable console output
-
setFileOutput(
bool enabled, {String? filePath}) → void - Enable/disable file output
-
setMaxBufferSize(
int size) → void - Set maximum buffer size
-
setMinLevel(
FCPLogLevel level) → void - Set minimum log level
-
toString(
) → String -
A string representation of this object.
inherited
-
warning(
String message, {String? tag, Map< String, dynamic> ? data}) → void - Log warning message
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → FCPLoggingService
-
no setter