# stage2: \-Dlog enables all logging, log scopes can be set at runtime · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/1af31baf0ba447b6ea5a1456df5ba2d82dc26e56)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 1af31baf0ba447b6ea5a1456df5ba2d82dc26e56

Requested commit: 1af31baf0ba447b6ea5a1456df5ba2d82dc26e56

Commit: 1af31baf0ba447b6ea5a1456df5ba2d82dc26e56

Tree: a03fbbd5250b28d63188bbeae7e83e0b0487d81d

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: -Dlog enables all logging, log scopes can be set at runtime

Previously you had to recompile if you wanted to change the log scopes
that get printed. Now, log scopes can be set at runtime, and -Dlog
controls whether all logging is available at runtime.

Purpose here is a nicer development experience. Most likely stage2
developers will always want -Dlog enabled and then pass --debug-log
scopes when debugging particular issues.

```

## Parents

- [287f640cc94d7f1cddb30e9ef57a8c921621a5b9](https://git.cafe/gitcafe/zig/commit/287f640cc94d7f1cddb30e9ef57a8c921621a5b9?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/1af31baf0ba447b6ea5a1456df5ba2d82dc26e56?format=markdown)
