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