A beautiful and easy to use Console Logger for Dart & Flutter
Report Bug
·
Request Feature
A beautiful and easy to use Console Logger using Dart Mixins for Dart & Flutter! A wrapper of https://pub.dev/packages/logger
- iOS
- Android
- Mac OS
- Windows
- Linux
- Web
Google Flutter SDK
- Flutter SDK
- Android SDK & Android Studio for deployment to Android
- XCode IDE for deployment to iOS/iPad/MacOS
- VS Code IDE optional
- Clone the repo
git clone https://github.com/oliverbytes/console_mixin.git
- Install packages dependencies
flutter pub get
- Run
flutter run
// Import Package
import 'package:console_mixin/console_mixin.dart';
// Add as Mixin to your class
class MainScreen extends StatelessWidget with ConsoleMixin {
//-- console object is coming from the ConsoleMixin above
console.info('console.info()');
console.debug('console.debug()');
console.warning('console.warning()');
console.error('console.error()');
console.wtf('console.wtf()');
console.verbose('console.verbose()');
//-- Javascript style
console.log(Level.debug, 'console.name: ${console.name}\n\n');
// print the class name
console.info('console.name: ${console.name}\n\n');
//-- Added as inline variable, useful for static classes where Mixins are not supported
final inlineConsole = Console(name: 'Inline Console Name');
inlineConsole.info('inline console.info(), name: ${inlineConsole.name}');
- Unit Testing
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Oliver Martinez - @oliverbytes - nemoryoliver@gmail.com
Project Link: https://github.com/oliverbytes/console_mixin