[log] add documentation.