Search packages, repositories and app categories

Package detailsv0.3.6

mason_logger

A reusable Dart logger used by the Mason CLI (package:mason_cli).

AndroidiOSWebmacOSWindowsLinux
30-day downloads
2M
Likes
52
Pub points
160

Install package

flutter pub add mason_logger

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

mason_logger is a lightweight, reusable Dart logging package designed for use in the Mason CLI. It provides a simple and consistent interface for outputting logs with different severity levels, such as info, warning, and error. Built with clarity and extensibility in mind, it supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux. The logger is ideal for command-line tools and development workflows where structured, readable output is essential. It integrates seamlessly into Dart projects that require reliable logging without heavy dependencies.

Use cases

  • CLI tool development
  • Development environment feedback
  • Error tracking in scripts
  • Real-time console output
  • Integration with build systems
  • Debugging command-line workflows

Key features

  • Simple API for log levels
  • Cross-platform compatibility
  • Minimal performance overhead
  • Extensible design
  • Consistent output formatting
  • Used by the Mason CLI itself

Suitable for

  • Dart developers building CLI tools
  • Tools requiring structured console logging
  • Projects using Mason or similar scaffolding systems
  • Teams prioritizing clean, readable logs
  • Developers seeking lightweight logging solutions

Considerations

  • Best suited for CLI applications
  • Not intended for production server logging
  • Limited to console output
  • No built-in file logging
  • Requires manual configuration for advanced use
  • Depends on Mason ecosystem conventions

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

mason logo

mason coverage License: MIT Powered by Mason


A collection of packages that enable developers to create and consume reusable templates called bricks.

Mason Demo

Packages

Package Pub
mason pub package
mason_api pub package
mason_cli pub package
mason_logger pub package

Quick Start

# 🎯 Activate from https://pub.dev
dart pub global activate mason_cli

# 🚀 Initialize mason
mason init

# 📦 Install your first brick
mason add hello

# 🧱 Use your first brick
mason make hello

Documentation

View the full documentation here.

Video Tutorials

Package of the Week by Flutter Observable Flutter: Building a Mason brick by Flutter
mason (Package of the Week) Observable Flutter: Building a Mason brick
Meet Mason: Flutter Vikings 2022 by Flutter Community Felix Angelov Demos Mason by Very Good Ventures
Meet Mason: Intro to Templating and Custom Code Generation Mason Video Tutorial

Badge

Add a markdown badge to indicate your project is powered by mason → Powered by Mason

[![Powered by Mason](https://img.shields.io/endpoint?url=https%3A%2F%2Ftinyurl.com%2Fmason-badge)](https://github.com/felangel/mason)

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package

Rankings