basic api for log messages