# std.log: better default for printing logs · gitcafe/zig

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

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

Visibility: public

Requested revision: 495d18a2056882d7edc7376751e7f3d4e10ef920

Requested commit: 495d18a2056882d7edc7376751e7f3d4e10ef920

Commit: 495d18a2056882d7edc7376751e7f3d4e10ef920

Tree: 795a98eb0209efebacf0799f07834e5b03372379

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.log: better default for printing logs

 * prefix with the message level
 * if the scope is not default, also prefix with the scope

This makes the stack trace test pass, with no changes to the
test case, because errors returned from main() now print
`error: Foo` just like they do in master branch.

```

## Parents

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

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