ilog 0.1.5
ilog: ^0.1.5 copied to clipboard
Tiny Flutter debug logger that prints colorful, emoji-friendly logs to consoles
// example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:ilog/ilog.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'ILog Example',
home: Scaffold(
appBar: AppBar(title: const Text('ILog Console Demo')),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
const Text(
'Check the debug console for colored and iconic logs!',
),
const SizedBox(height: 30),
ElevatedButton(
onPressed: () {
// Loqlama funksiyalarını düyməyə basanda nümayiş etdirin
ILog.error(
"Database connection failed!",
icon: ILogIcon.bomb,
);
ILog.warning(
"API response time is slow.",
icon: ILogIcon.thunder,
);
ILog.info(
"User session refreshed successfully.",
icon: ILogIcon.info,
);
ILog.success("Data loaded completely.", icon: ILogIcon.check);
ILog.custom(
title: "CUSTOM DEBUG",
text: "Special log using custom color/icon.",
color: ILogColor.purple,
icon: ILogIcon.wrench,
);
},
child: const Text('Generate ILog Messages'),
),
],
),
),
),
);
}
}