1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
__zplug::log::print::error()
{
# No problem since this function ignores
# unrelated arguments passed
__zplug::log::format::with_json \
--level "ERROR" \
--message "$argv[1]" \
"$argv[2,-1]"
}
__zplug::log::print::debug()
{
# No problem since this function ignores
# unrelated arguments passed
__zplug::log::format::with_json \
--level "DEBUG" \
--message "$argv[1]" \
"$argv[2,-1]"
}
__zplug::log::print::info()
{
# No problem since this function ignores
# unrelated arguments passed
__zplug::log::format::with_json \
--level "INFO" \
--message "$argv[1]" \
"$argv[2,-1]"
}
|