new global_logger, used in AVR_LOG(), default is stdout/stderr