Document log function.