dev_colorized_log 1.1.6 copy "dev_colorized_log: ^1.1.6" to clipboard
dev_colorized_log: ^1.1.6 copied to clipboard

A Flutter package for logging colorized text in developer mode.

Dev Colorized Log #

pub packageStar on Github

A Flutter package for logging colorized text in developer mode.

Usage #

See examples to /example folder, more please run example project.

/* Global settings:*/
Dev.enable = true; // whether log msg
Dev.isLogFileLocation = true; // whether log the location file info
Dev.defaultColorInt = 0; // default color text, int value from 0 to 107
Dev.isDebugPrint = true; // Dev.print whether only log on debug mode

// custom function to support your process of log
Dev.customFinalFunc = (msg) {
	// e.g.: your custom write msg to file  
  writeToFile(msg);
};
// then every level log func contains execFinalFunc param:
Dev.log('Colorized text log to your process of log', execFinalFunc: true);

/* Log usage: */
Dev.log('Colorized text log'); // default yellow text
Dev.logInfo('Colorized text Info'); // blue text
Dev.logSuccess('Colorized text Success', execFinalFunc: true); // green text
Dev.logWarning('Colorized text Warning'); // yellow text
Dev.logError('Colorized text Error'); // red text
Dev.logBlink('Colorized text blink', isSlow: true, isLog: true); // blink orange text

// Support to log on multi platform consoles like Xcode and VS Code
Dev.print('Dev text print', isDebug: true); // default log only on debug mode

// Others:
Dev.log('Colorized text log other customs', fileLocation: 'main.dart:90xx', colorInt: 96);

Author #

Visit my github: janlionly
Contact with me by email: janlionly@gmail.com

Contribute #

I would love you to contribute to DevColorizedLog

License #

DevColorizedLog is available under the MIT license. See the LICENSE file for more info.

2
likes
0
points
420
downloads

Publisher

verified publisherjanlionly.dev

Weekly Downloads

A Flutter package for logging colorized text in developer mode.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on dev_colorized_log