We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bebd96 commit 7fb259cCopy full SHA for 7fb259c
2 files changed
config/soda/log.conf
@@ -24,4 +24,4 @@
24
LOG_FILE=/tmp/soda.log
25
SODA_DATE_LOG_PATTERN="%F %T"
26
SODA_FILE_LOG_PATTERN="%s | %-6s | %s\n"
27
-SODA_CONSOLE_LOG_PATTERN="%-6s: %s"
+SODA_CONSOLE_LOG_PATTERN="%s | %-6s | %s"
scripts/soda/log.sh
@@ -78,7 +78,7 @@ file_log() {
78
79
# Put a log message in console
80
console_log() {
81
- local message="$(printf "$SODA_CONSOLE_LOG_PATTERN" "$1" "$2")"
+ local message="$(printf "$SODA_CONSOLE_LOG_PATTERN" "$(date +"${SODA_DATE_LOG_PATTERN}")" "$1" "$2")"
82
if [[ -n "$3" ]]; then
83
echo "$($3 "$message")"
84
else
0 commit comments