resultex_logger 1.1.3
resultex_logger: ^1.1.3 copied to clipboard
A lightweight, high-performance, and colorized logging system for Flutter and Dart built on top of native developer.log
import 'package:flutter/foundation.dart';
import 'package:resultex_logger/resultex_logger.dart';
import 'package:resultex_logger/src/logger_base.dart';
void main() async {
// Example initializing implementation
final loggerBase = ResultexLoggerBase();
final logger = ResultexLogger(
settings: ResultexLoggerSettings(
maxLineWidth: 40, // Slimmer boxes
lineSymbol: '*', // Use hashes instead of solid lines
),
);
await loggerBase.init();
if (kDebugMode) {
logger.info('Resultex Logger Example running...');
logger.info('Application started successfully.');
}
logger.debug('Database connection established.');
logger.info('Resource allocated smoothly.');
// Warnings & Debugs
logger.warning('API response time is slower than expected.');
logger.debug('Fetching user data dynamic payload...');
}