Verschiebe in Root

This commit is contained in:
no
2024-11-28 13:36:01 +01:00
parent a99479e4c6
commit fca6e5ba93
8 changed files with 0 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
}