1.1.0 ⢠Published 12 months ago
easio-logger v1.1.0
Easio Logger
Welcome to Easio Logger, coloring system for console log. Sometimes logging can be a bit boring or you just really need that red output msg. This library allows you to customize your console output with a rich set of styles and chaining capabilities, making it easier to see what's important at a glance.
š¦ Installation
npm install easio-logger
šØ Available Styles
Here's a list of styles you can apply to your logs:
- `log.error()`: Logs in red text. ā ļø
- `log.success()`: Logs in green text. ā
- `log.bold()`: Logs in bold text. šŖ
- `log.italic()`: Logs in italic text. āØ
- `log.big()`: Logs in large text. š
- `log.warning()`: Logs in yellow text. ā ļø
- `log.info()`: Logs in blue text. ā¹ļø
- `log.underline()`: Logs with underlined text. š
- `log.strikethrough()`: Logs with strikethrough text. ā
- `log.small()`: Logs in small text. š”
- `log.blueBackground()`: Logs with a blue background. š
- `log.greenBackground()`: Logs with a green background. š
- `log.redBackground()`: Logs with a red background. ā¤ļø
- `log.shadow()`: Logs with text shadow. š«ļø
- `log.uppercase()`: Logs in uppercase text. š
š ļø Usage Here's how you can use the library in your browser console:
Basic Logging
log.error('This is an error message'); // Red text
Chained Logging
log.success.bold('This is a success message in bold green'); // Green and bold
Combining Multiple Styles
log.warning.italic.big('This is a big italic warning message'); // Yellow, italic, and big