add log builtin func