If you’re lazy like me, just pipe the output to a file:
```bash
python -W default script.py > output.log 2>&1
```
Now *everything* (including warnings) is in `output.log`.
Not elegant, but works when you python run program with warnings and forget to configure logging.
```bash
python -W default script.py > output.log 2>&1
```
Now *everything* (including warnings) is in `output.log`.
Not elegant, but works when you python run program with warnings and forget to configure logging.
