1
0
mirror of https://github.com/zplug/zplug synced 2025-04-05 15:19:13 +02:00
zplug/base/log/write.zsh
2017-01-08 21:15:28 +09:00

21 lines
513 B
Bash

__zplug::log::write::error()
{
__zplug::job::handle::flock --escape \
"$_zplug_log[trace]" \
"$(__zplug::log::format::with_json "ERROR" "$argv[@]")"
}
__zplug::log::write::debug()
{
__zplug::job::handle::flock --escape \
"$_zplug_log[trace]" \
"$(__zplug::log::format::with_json "DEBUG" "$argv[@]")"
}
__zplug::log::write::info()
{
__zplug::job::handle::flock --escape \
"$_zplug_log[trace]" \
"$(__zplug::log::format::with_json "INFO" "$argv[@]")"
}