proctologger 1.0.4
proctologger: ^1.0.4 copied to clipboard
Easy to use logger for dart and flutter apps which prints beautiful logs.
example/main.dart
import 'package:proctologger/logic/states/state_channel.dart';
import 'package:proctologger/proctologger.dart';
var logger = Logger();
void main() {
demo();
}
void demo() {
logger.info(
"This is an info message",
);
logger.info(
"Here is a very long information message to demonstrate multi-line handling and tags",
);
logger.warning(
"This is a warning message",
);
logger.action(
"This is an action message",
);
logger.database(
"This is a database message",
);
logger.error(
"This is an error message",
);
logger.debug("This is a variable to debug");
logger.info(
"This is an info message",
channel: LoggerChannelState.app,
tags: ["tag", "Another tag"]
);
logger.debug(
logger.parameters,
channel: LoggerChannelState.app,
message: "Debugging variable @parameters",
);
}