8 lines
145 B
Bash
Executable file
8 lines
145 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Function to log messages
|
|
log() {
|
|
local message="$1"
|
|
echo "$(date '+%Y-%m-%d %H:%M:%S') - $message" | tee -a "$LOG_FILE"
|
|
}
|