add log method