File: print.zsh

package info (click to toggle)
zplug 2.4.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,068 kB
  • sloc: sh: 1,504; awk: 235; makefile: 26
file content (29 lines) | stat: -rw-r--r-- 684 bytes parent folder | download | duplicates (4)
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]"
}