Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/add colors #6

Merged
merged 5 commits into from
Apr 21, 2020
Merged

Conversation

azriel91
Copy link
Contributor

Adds the ability to render log messages with colors.

The styling code is largely from limira-rs/wasm-logger, though I cleaned it up a bit. I've put it behind a "color" feature flag and it is off by default.

What it looks like:

log_messages_styled


Between console_log and wasm-logger, I decided to submit the PR here since this already integrates with fern.

Copy link
Owner

@iamcodemaker iamcodemaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting a PR. Looks good. Just a few documentation/visibility related changes and this should be good to go.

src/lib.rs Show resolved Hide resolved
src/style.rs Outdated Show resolved Hide resolved
@azriel91
Copy link
Contributor Author

Oh yeaps, good points! (eagle eye for that detail)

@iamcodemaker iamcodemaker merged commit b2440b8 into iamcodemaker:master Apr 21, 2020
@iamcodemaker
Copy link
Owner

Version 0.2.0 has been published with this change.

@iamcodemaker iamcodemaker added the published This has been published to crates.io. label Apr 21, 2020
@azriel91 azriel91 deleted the feature/add-colors branch April 21, 2020 06:14
crapStone pushed a commit to Calciumdibromid/CaBr2 that referenced this pull request Mar 15, 2023
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [console_log](https://github.com/iamcodemaker/console_log) | dependencies | patch | `0.2.1` -> `0.2.2` |

---

### Release Notes

<details>
<summary>iamcodemaker/console_log</summary>

### [`v0.2.2`](https://github.com/iamcodemaker/console_log/releases/tag/0.2.2)

#### What's Changed

-   remove trailing semicolon from macro by [@&#8203;escobar-west](https://github.com/escobar-west) in iamcodemaker/console_log#12

#### New Contributors

This is the first time generating release notes, so not all of these contributions are in this release. I still wanted to recognize the contributions.

-   [@&#8203;azriel91](https://github.com/azriel91) made their first contribution in iamcodemaker/console_log#6
-   [@&#8203;neurosie](https://github.com/neurosie) made their first contribution in iamcodemaker/console_log#7
-   [@&#8203;dependabot-preview](https://github.com/dependabot-preview) made their first contribution in iamcodemaker/console_log#8
-   [@&#8203;chidea](https://github.com/chidea) made their first contribution in iamcodemaker/console_log#10
-   [@&#8203;escobar-west](https://github.com/escobar-west) made their first contribution in iamcodemaker/console_log#12

**Full Changelog**: https://github.com/iamcodemaker/console_log/commits/0.2.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTkuMiIsInVwZGF0ZWRJblZlciI6IjM0LjE1OS4yIn0=-->

Co-authored-by: cabr2-bot <cabr2.help@gmail.com>
Reviewed-on: https://codeberg.org/Calciumdibromid/CaBr2/pulls/1814
Reviewed-by: crapStone <crapstone@noreply.codeberg.org>
Co-authored-by: Calciumdibromid Bot <cabr2_bot@noreply.codeberg.org>
Co-committed-by: Calciumdibromid Bot <cabr2_bot@noreply.codeberg.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
published This has been published to crates.io.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants