Custom function example in BASH.
Log function with date and time prefixed to the message.