#log #shell #function #terminal #cli

paris-locate

A crate to add function name to paris's formatting output

2 releases

0.1.1 Jun 12, 2024
0.1.0 Jun 11, 2024

#486 in Command-line interface

32 downloads per month

MPL-2.0 license

36KB
69 lines

本库实现了在paris打印日志的过程中定位使用该宏的函数名称

  1. 采用了paris进行log输出与彩色显示
  2. 使用std-ext::function_name获取函数名称
  3. 采用https://github.com/sindresorhus/figures 中的特殊符号为每一个宏配置了对应符号
level symbol
log
info i
debug >
warning
error
success

输出范例如下:

Dependencies

~125KB