core/logger/logger library

Logar - Centralized Logging System for Amwal Pay SDK

This file exports all logging-related components for easy import.

Usage:

import 'package:amwal_pay_sdk/core/logger/logger.dart';

// Initialize Logar
LogarInjector.instance.initializeForDevelopment();

// Use Logar for logging
Logar.info('Application started');
Logar.error('Something went wrong', error: error, stackTrace: stackTrace);

Classes

AmwalLogger
Legacy AmwalLogger class - now integrated with Logar
CustomLogCollector
Custom log collector for other services
FirebaseCrashlyticsCollector
Firebase Crashlytics log collector implementation
Logar
Centralized logging utility - Logar
LogarConfig
Configuration for Logar
LogarInjector
Dependency injection setup for Logar
LogarMigrationHelper
Migration helper to replace existing print() and debugPrint() calls
LogCollector
Abstract interface for external log collectors
LogEntry
Log entry data structure

Enums

LogFormat
Output format for logs
LogLevel
Log levels supported by Logar

Extensions

LogarMigrationExtensions on Object?
Extension methods for easier migration

Typedefs

AmwalLoggerFunction = void Function(dynamic error, StackTrace? stackTrace)