How to send syslog messages using command-line utilities

Send syslog messages using logger, bash and netcat command-line utilities.