fix bug on local and external visibility for loggers