From a7600dd539d2af4af39057018ecf39940f2a0a4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Mon, 23 Oct 2017 15:38:31 +0200 Subject: [PATCH] add integer for json logging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- output_lib.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/output_lib.sh b/output_lib.sh index 5ead4b7..af79f02 100644 --- a/output_lib.sh +++ b/output_lib.sh @@ -40,3 +40,7 @@ endjson (){ logjson (){ printf "\n \"%s\": \"%s\"," "$1" "$2" | tee -a "$logger.json" 2>/dev/null 1>&2 } + +integerjson (){ + printf "\n \"%s\": %s," "$1" "$2" | tee -a "$logger.json" 2>/dev/null 1>&2 +}