The logging understanding

what is write to log step ?? what is the primary use of write to log step? till now my understand is we use write to log to get detailed log with the field name .