0.3.0 • Published 5 years ago

@ludeeus/colorlog v0.3.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Colorlog

npm npm npm

example

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 VarDefault
--colorlog-font-familymonospace
--colorlog-text#000000
--colorlog-debug#00b2fd
--colorlog-info#00ab00
--colorlog-warning#ffc303
--colorlog-error#f00000
--colorlog-critical#d00000
0.3.0

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago