felangel / mason

Tools which allow developers to create and consume reusable templates called bricks.

Home Page:https://docs.brickhub.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feat: Extract mason_logger

feinstein opened this issue · comments

I find mason_logger very useful for CLIs in general, and I totally know I am nitpicking, but I think it would be nice if the library was not tied to mason. If not to be extracted from the repo, then change it's name to cli_logger or submit a PR to cli_utils and merge both libs?

I just feel it's weird to add mason_logger into my CLIs, even though I am not using mason at all in the project.

Hi @feinstein 👋
Thanks for opening an issue!

The library isn't really tied to mason, it's just part of the mason ecosystem hence the mason prefix. If you want you can always create your own library and re-export package:mason_logger to avoid having to add package:mason_logger to your CLIs:

library my_cool_logger;

export 'package:mason_logger/mason_logger.dart';
import 'package:my_cool_logger/my_cool_logger.dart'; // No more `package:mason_logger`

void main() {
  final logger = Logger(); // But the usage doesn't change :)
}

Does that help?

As I said, I might be nitpicking, nothing big, thanks for the attention.