new global_logger, used in AVR_LOG(), default is stdout/stderr
refactor logger
Merge pull request #12 from ponty/logger2

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