PG1X WIKI

My Knowledge Base

User Tools

Site Tools


tech:ops:logging:logging

Logging

PuTTY

D:\junk\logs\&H-&Y&M&D-&T.log

ターミナルソフト PuTTY

Local Timezone

log_directory=$HOME/log; [[ ! -d ${log_directory} ]] && mkdir ${log_directory}; script ${log_directory}/$(date +%Y%m%d_%H%M%S)_$(whoami)@$(hostname -f).log

UTC

log_directory=$HOME/log; [[ ! -d ${log_directory} ]] && mkdir ${log_directory}; script ${log_directory}/$(date -u +%Y%m%d_%H%M%S)_$(whoami)@$(hostname -f).log
tech/ops/logging/logging.txt · Last modified: 2021/07/31 12:18 by wnoguchi