'Sets the default logging console target.
Examples:
>>> context.log_level = \'warn\'
>>> log.warn("Hello")
[!] Hello
>>> context.log_console=open(\'/dev/null\', \'w\')
>>> log.warn("Hello")
>>> context.clear()'

@_validator
def log_console(self, stream):

    if isinstance(stream, str):
        stream = open(stream, 'wt')
    return stream
