File: api_emoji.md

package info (click to toggle)
python-milc 1.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 788 kB
  • sloc: python: 1,868; sh: 55; makefile: 3
file content (23 lines) | stat: -rw-r--r-- 504 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<a id="emoji"></a>

# emoji

Emoji used by MILC when outputting logs

| Log Level | Emoji |
|-----------|-------|
| `CRITICAL` | `{bg_red}{fg_white}¬_¬` |
| `ERROR` | `{fg_red}☒` |
| `WARNING` | `{fg_yellow}⚠` |
| `INFO` | `{fg_blue}ℹ` |
| `DEBUG` | `{fg_cyan}☐` |
| `NOTSET` | `{style_reset_all}¯\_(o_o)_/¯` |

If you'd like to use your own icon for a level instead you can simply redefine it:

```python
from milc.emoji import EMOJI_LOGLEVELS

EMOJI_LOGLEVELS['INFO'] = {fg_green}ℹ'
```