# Autodoc: use browser console log levels and simplify panic · gitcafe/zig

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

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

Visibility: public

Requested revision: b745a96d20e8159a68be53478d30c72f8c216dd3

Requested commit: b745a96d20e8159a68be53478d30c72f8c216dd3

Commit: b745a96d20e8159a68be53478d30c72f8c216dd3

Tree: 39c5534d0e11e4c3da8efb36e0d920d48aadb2b6

Author: Ian Johnson

Committer: Ian Johnson

## Message

```
Autodoc: use browser console log levels and simplify panic

Using the browser's `console.error`, etc. functions instead of `console.log` produces prettier output in the console. Additionally, `console.error` in particular includes a stack trace, which is useful for debugging where the error occurred.

Additionally, this commit leverages the enhanced logging to delete the separate `panic` function from the JS code and write it in Zig instead.

```

## Parents

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

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