How to write the logger in SQL

 Logger in SQL :

Example code to write the log in SQL software : 


Thank You!