How to directly log to syslog from linux console?

You can use the logger tool. The simple command to log is

logger My syslog message from console.

About the Author

Yogi

21 years of experience in various layers of software. Primarily experienced in system side software design and development on server management software. Interested in linux development in x86 and arm architecture.