loggery 1.0.1 copy "loggery: ^1.0.1" to clipboard
loggery: ^1.0.1 copied to clipboard

discontinuedreplaced by: log_pro

Logger is a custom logging package for Flutter that simplifies tracking and debugging app behavior.

Loggery #

pub package Last Commits Pull Requests Code size License

Logger is a custom logging package for Flutter that simplifies tracking and debugging app behavior. It supports various log levels, such as debug, info, warning, and error, allowing developers to categorize and filter logs effectively.

Resources: #

Getting Started #

Just create an instance of Logger and start logging:

Loggery loggery = Loggery();

loggery.error("error");

Output #


Default styles

 [log] 
      ╔════════════════════════════════════════════════════════════════════════════════════
      ║[ERROR][00:26:54.170]:
      ║message
      ╚════════════════════════════════════════════════════════════════════════════════════


Simple styles

+ [log] [ERROR]:message


Use Print instead of log

+ D/EGL_emulation(24250): app_time_stats: avg=376.97ms min=9.17ms max=4292.33ms count=12
+ I/flutter (24250): 
+ I/flutter (24250): ╔════════════════════════════════════════════════════════════════════════════════════
+ I/flutter (24250): ║[ERROR][00:41:29.720]:
+ I/flutter (24250): ║Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem
+ I/flutter (24250): ║Ipsum has been the industry's standard dummy text ever since the 1500s, when an
+ I/flutter (24250): ║unknown printer took a galley of type and scrambled it to make a type specimen book.
+ I/flutter (24250): ║It has survived not only five centuries, but also the leap into electronic
+ I/flutter (24250): ║typesetting, remaining essenti
+ I/flutter (24250): ╚════════════════════════════════════════════════════════════════════════════════════
+

Output Images #


Default styles

Simple styles

Custom styles ex (line length - border shape)

Custom message styles (Default - Divided into equal lines - Put a border at the beginning of each line)


Use Print instead of log

Documentation #

Log level #

You can log with different levels:

Loggery loggery = Loggery();
    loggery.info("info");
    loggery.error("error");
    loggery.normal("normal");
    loggery.warning("warning");
    loggery.magenta("magenta");
    loggery.logit("logit");
    loggery.grey("grey");
    loggery.green("green");
    loggery.risk("risk");
    loggery.whiteBlack("whiteBlack");
    loggery.normal("normal");
    loggery.prt("go", logColor: LogColors.red);

Customize

Loggery printIt = Loggery(
  title: "loggery",
  usePrint: false,
  lineLength: 100,
  addEnterAtFirst: true,
  splitMsgToSameLineLength: true,
  splitMsgToSameLineLengthAddLeading: true,
  msgStartInNewLine: true,
  lineShape: "═",
  makeTitleSameWidth: false,
  fullLineTitleAndTime: false,
  simpleBorderOneLine: false,
  simpleShapeLog: false,
);

Options #

When you are finished with the debugging stage, you can stop Loggery without delete or commit it.

Loggery loggery = Loggery(
  isLoggingEnabled: false,
);
1
likes
160
points
38
downloads
screenshot

Publisher

unverified uploader

Weekly Downloads

Logger is a custom logging package for Flutter that simplifies tracking and debugging app behavior.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on loggery