Support log method for programmatic logging