@ludeeus/colorlog
v0.3.0
Published
A simple component to format log output with colors.
Downloads
4
Maintainers
Readme
Colorlog
A simple component to format log output with colors.
Currently only output from pythons logging
package is supported.
Example usage
See the demo for examples on how it can look.
See example.ts for examples on how you can use it.
import "@ludeeus/colorlog";
How it works
The component has one property (log
), here you can feed it a text representation of your output.
It will split the input on newline, and scan each line for a know indicator on what type of log line it is.
CSS vars
| CCS Var | Default |
| ------------------------ | ----------- |
| --colorlog-font-family
| monospace
|
| --colorlog-text
| #000000
|
| --colorlog-debug
| #00b2fd
|
| --colorlog-info
| #00ab00
|
| --colorlog-warning
| #ffc303
|
| --colorlog-error
| #f00000
|
| --colorlog-critical
| #d00000
|