first commit

This commit is contained in:
no
2024-11-28 13:24:48 +01:00
commit a99479e4c6
8 changed files with 333 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
function log_info() {
echo "{\"timestamp\": \"$(date)\", \"level\": \"INFO\", \"message\": \"$1\"}" >> $LOG_FILE
}
function log_error() {
echo "{\"timestamp\": \"$(date)\", \"level\": \"ERROR\", \"message\": \"$1\"}" >> $LOG_FILE
}
function log_critical() {
echo "{\"timestamp\": \"$(date)\", \"level\": \"CRITICAL\", \"message\": \"$1\"}" >> $LOG_FILE
}