diff --git a/qiling/log.py b/qiling/log.py index d83854999..5e2b0d4e8 100644 --- a/qiling/log.py +++ b/qiling/log.py @@ -194,6 +194,9 @@ def setup_logger(ql: Qiling, logdevs: Collection[Union[IO, str]], plain: bool, o elif isinstance(dev, str): handler = FileHandler(dev) + + elif isinstance(dev, type(sys.stderr)): + handler = StreamHandler(dev) else: raise TypeError(f'unexpected logging device type: {type(dev).__name__}')