mirror of
https://github.com/Nanaloveyuki/BitLogger.git
synced 2026-07-24 17:02:19 +00:00
29 lines
654 B
MoonBit
29 lines
654 B
MoonBit
///|
|
|
pub type ApplicationAsyncLogger = AsyncLogger[@bitlogger.RuntimeSink]
|
|
|
|
///|
|
|
pub type ApplicationTextAsyncLogger = AsyncLogger[
|
|
@bitlogger.FormattedConsoleSink,
|
|
]
|
|
|
|
///|
|
|
pub fn build_application_async_logger(
|
|
config : AsyncLoggerBuildConfig,
|
|
) -> ApplicationAsyncLogger {
|
|
build_async_logger(config)
|
|
}
|
|
|
|
///|
|
|
pub fn build_application_text_async_logger(
|
|
config : AsyncLoggerBuildConfig,
|
|
) -> ApplicationTextAsyncLogger {
|
|
build_async_text_logger(config)
|
|
}
|
|
|
|
///|
|
|
pub fn parse_and_build_application_async_logger(
|
|
input : String,
|
|
) -> ApplicationAsyncLogger raise {
|
|
build_application_async_logger(parse_async_logger_build_config_text(input))
|
|
}
|