diff options
| author | Paul Buetow <git@mx.buetow.org> | 2021-05-17 21:19:35 +0100 |
|---|---|---|
| committer | Paul Buetow <git@mx.buetow.org> | 2021-05-21 05:11:05 +0100 |
| commit | f6deb276c7c5e7b3617d9ecd35193b43ae32ccbf (patch) | |
| tree | 4d3fc2fed8a982177bb3495d8f8c8cfb8e71f955 /packages/log.source.sh | |
| parent | 5ed55a4adea13db1425f72578c4b524acc13eee5 (diff) | |
refactor
Diffstat (limited to 'packages/log.source.sh')
| -rw-r--r-- | packages/log.source.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/log.source.sh b/packages/log.source.sh index 55d693e..2c6e1b3 100644 --- a/packages/log.source.sh +++ b/packages/log.source.sh @@ -1,3 +1,4 @@ +# Log a message. log () { local -r level="$1"; shift @@ -6,10 +7,12 @@ log () { done | log::_pipe "$level" } +# Log a stream through a pipe. log::pipe () { log::_pipe "$1" } +# Internal log implementation. log::_pipe () { local -r level="$1"; shift |
