Skip to content

Commit b1ae1ce

Browse files
authored
Use stdout for logging output (#169)
1 parent 1700fcf commit b1ae1ce

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/log.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# ------------------------------------------------------------------------------
1616
bashio::log() {
1717
local message=$*
18-
echo -e "${message}" >&2
18+
echo -e "${message}"
1919
return "${__BASHIO_EXIT_OK}"
2020
}
2121

@@ -27,7 +27,7 @@ bashio::log() {
2727
# ------------------------------------------------------------------------------
2828
bashio::log.red() {
2929
local message=$*
30-
echo -e "${__BASHIO_COLORS_RED}${message}${__BASHIO_COLORS_RESET}" >&2
30+
echo -e "${__BASHIO_COLORS_RED}${message}${__BASHIO_COLORS_RESET}"
3131
return "${__BASHIO_EXIT_OK}"
3232
}
3333

@@ -39,7 +39,7 @@ bashio::log.red() {
3939
# ------------------------------------------------------------------------------
4040
bashio::log.green() {
4141
local message=$*
42-
echo -e "${__BASHIO_COLORS_GREEN}${message}${__BASHIO_COLORS_RESET}" >&2
42+
echo -e "${__BASHIO_COLORS_GREEN}${message}${__BASHIO_COLORS_RESET}"
4343
return "${__BASHIO_EXIT_OK}"
4444
}
4545

@@ -51,7 +51,7 @@ bashio::log.green() {
5151
# ------------------------------------------------------------------------------
5252
bashio::log.yellow() {
5353
local message=$*
54-
echo -e "${__BASHIO_COLORS_YELLOW}${message}${__BASHIO_COLORS_RESET}" >&2
54+
echo -e "${__BASHIO_COLORS_YELLOW}${message}${__BASHIO_COLORS_RESET}"
5555
return "${__BASHIO_EXIT_OK}"
5656
}
5757

@@ -63,7 +63,7 @@ bashio::log.yellow() {
6363
# ------------------------------------------------------------------------------
6464
bashio::log.blue() {
6565
local message=$*
66-
echo -e "${__BASHIO_COLORS_BLUE}${message}${__BASHIO_COLORS_RESET}" >&2
66+
echo -e "${__BASHIO_COLORS_BLUE}${message}${__BASHIO_COLORS_RESET}"
6767
return "${__BASHIO_EXIT_OK}"
6868
}
6969

@@ -75,7 +75,7 @@ bashio::log.blue() {
7575
# ------------------------------------------------------------------------------
7676
bashio::log.magenta() {
7777
local message=$*
78-
echo -e "${__BASHIO_COLORS_MAGENTA}${message}${__BASHIO_COLORS_RESET}" >&2
78+
echo -e "${__BASHIO_COLORS_MAGENTA}${message}${__BASHIO_COLORS_RESET}"
7979
return "${__BASHIO_EXIT_OK}"
8080
}
8181

@@ -87,7 +87,7 @@ bashio::log.magenta() {
8787
# ------------------------------------------------------------------------------
8888
bashio::log.cyan() {
8989
local message=$*
90-
echo -e "${__BASHIO_COLORS_CYAN}${message}${__BASHIO_COLORS_RESET}" >&2
90+
echo -e "${__BASHIO_COLORS_CYAN}${message}${__BASHIO_COLORS_RESET}"
9191
return "${__BASHIO_EXIT_OK}"
9292
}
9393

@@ -115,7 +115,7 @@ function bashio::log.log() {
115115
output="${output//\{MESSAGE\}/"${message}"}"
116116
output="${output//\{LEVEL\}/"${__BASHIO_LOG_LEVELS[$level]}"}"
117117

118-
echo -e "${output}" >&2
118+
echo -e "${output}"
119119

120120
return "${__BASHIO_EXIT_OK}"
121121
}

0 commit comments

Comments
 (0)