Ravi Sir's Cards › AWS
Script logging
What is a VPC: your own private network inside one AWS Region, example ThreeTierVpc 10.0.0.0/16.
Read card text
What this card says
Why do we need it?
A log function.
log(){ echo "$(date +%T) $*" >&2; }
What is it?
To syslog with a tag.
logger -t backup done
How to do it
Error priority.
logger -p user.err -t backup fail
Example
Read by tag.
journalctl -t backup