CKLogger

A inheritable and subscribable logger util.

Ten skrypt nie powinien być instalowany bezpośrednio. Jest to biblioteka dla innych skyptów do włączenia dyrektywą meta // @require https://update.greatest.deepsurf.us/scripts/441386/1027348/CKLogger.js

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

Autor
CKylinMC
Wersja
1.0
Utworzono
12-03-2022
Zaktualizowano
12-03-2022
Rozmiar
4,81 KB
Licencja
GPLv3 License

可订阅的多级控制台消息输出工具。

  • 自定义控制台消息提供者, logger.serviceProvider=console
  • 支持log/info/warn/error/debug,支持自定义输出方法
  • 可父子级输出日志, const childLogger = parentLogger.getSubLogger('childname')
  • 可禁用, logger.setVisible(false)
  • 可订阅, logger.subscribe({levels:['error','warn'],onlyVisible:true,includeSubLoggers:true,onlog:(level,namespace,...args)=>{/*do sth here*/}})