basic description of logging function