Add the leading '1' when required.  Improve sample code.


The official standard requires a '1' to be inserted in the Syslog string just after the priority

I've also expanded the sample code.