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
Expose termcolor's ColorChoice and make colors optional #72
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
White isn't a good default for those with light terminal screens (brighter background, darker text). This is already trivial in termcolor, so just allow level colors to be None.
Command line interfaces that write colored output usually give users an option to turn it off, or make it automatically shut off when writing to a file, pipe, or unsupported terminal. termcolor already has some nice machinery to handle this sort of thing with ColorChoice, so expose it when creating a TermLogger. Programmers (such as myself) who use simplelog and want to give users this choice only have ugly alternatives. For example, you could fall back to a WriteLogger if the user doesn't want color, but then you: - Lose out on the "mixed" logging mode you get from TerminalMode::Mixed - Have to reimplement nice ColorChoice::Auto behavior yourself, on _top_ of termcolor.
mrkline
added a commit
to mrkline/backpak
that referenced
this pull request
Mar 26, 2021
Waiting for Drakulix/simplelog.rs#72 to hopefully land. Meantime, use the fork.
mrkline
added a commit
to mrkline/flt2vhs
that referenced
this pull request
Mar 26, 2021
Waiting for Drakulix/simplelog.rs#72 to land for the latter; using a fork meantime
mrkline
added a commit
to mrkline/flt2vhs
that referenced
this pull request
Mar 26, 2021
Waiting for Drakulix/simplelog.rs#72 to land for the latter; using a fork meantime
thx! |
mrkline
added a commit
to mrkline/backpak
that referenced
this pull request
Apr 22, 2021
Waiting for Drakulix/simplelog.rs#72 to hopefully land. Meantime, use the fork.
bors bot
added a commit
to probe-rs/probe-rs
that referenced
this pull request
Apr 28, 2021
588: Update simplelog requirement from 0.9.0 to 0.10.0 in /probe-rs-cli-util r=Yatekii a=dependabot[bot] Updates the requirements on [simplelog](https://github.com/drakulix/simplelog.rs) to permit the latest version. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Drakulix/simplelog.rs/blob/master/CHANGELOG.md">simplelog's changelog</a>.</em></p> <blockquote> <h2>v0.10.0</h2> <pre><code>- Fix wrong argument naming (PR [#70](Drakulix/simplelog.rs#70), credits to @scvalex) - *Breaking*: More color customization options (PR [#72](Drakulix/simplelog.rs#72), credits to @mrkline) - Clarify docs on config levels </code></pre> <h2>v0.9.0</h2> <pre><code>- Add customizable level label colors (PR [#69](Drakulix/simplelog.rs#69). credits to @JarrettBillingsley) - Remove unneeded TermLogError - Future-proof config by adding `#[non_exhaustive]` - Fix compiling with minimal-versions </code></pre> <h2>v0.8.0</h2> <pre><code>- Switch from `term` to `termcolor` (PR [#59](Drakulix/simplelog.rs#59). credits to @raybritton) - Fix typo in docs (PR [#58](Drakulix/simplelog.rs#58), credits to @anthonyjmartinez) - Switch default padding to `Off`. Padding is annoyingly controversal, just set it to whatever you prefer, if you want it. </code></pre> <h2>v0.7.6</h2> <pre><code>- Derive `Clone`,`Copy`,`PartialEq`,`Eq`,`Debug` and `Hash` for `TerminalMode`. (PR [#56](Drakulix/simplelog.rs#56), credits to @panhania) </code></pre> <h2>v0.7.5</h2> <pre><code>- Use `target()` instead of `module_path()` for filtering as suggested by `log`s docs. (PR [#52](Drakulix/simplelog.rs#52), credits to @tsidea) - Allow logging thread names and pad thread ids (defaults match the old behaviour). (PR [#53](Drakulix/simplelog.rs#53), credits to @mulark) </code></pre> <h2>v0.7.4</h2> <pre><code>- Fixed time formats with </code></pre> <h2>v0.7.3</h2> <pre><code>- Fixed `test` feature </code></pre> <h2>v0.7.2</h2> <pre><code>- Allow Level Padding to be configured </code></pre> <h2>v0.7.1</h2> <pre><code>- Fix `LevelFilter:Off` not turning off parts of the log messages </code></pre> <h2>v0.7.0</h2> <pre><code>- Add local time zone option - Change config to builder pattern avoiding future major version bumps - Add further documentation about dealing with `TermLogger` failing - `term` 0.6.* is now also supported </code></pre> <h2>v0.6.0</h2> <pre><code>- Add time offset parameter (defaults to UTC) - Add thread_id output (credits to @kurtlawrence) - Pad log level - Add TestLogger (credits to @AlexW-GH) - Add stream configuration to TermLogger - Implement allow- and ignore-filtering (credits to @ryankurte) </code></pre> <h2>v0.5.3</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/1d26f67c78d01f33de460b0f3e7b82863e98f743"><code>1d26f67</code></a> ci: fix tag regex</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/f3603e6fbfe62803554d19553d420510512e23dd"><code>f3603e6</code></a> v0.10.0</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/5d077b6e1abe5bfa97010b5e8f305f56a43859c5"><code>5d077b6</code></a> Use sensible workflow name</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/577a532d82e3325b553e5935cfbf246c2a2e211b"><code>577a532</code></a> Fix some unused imports when disabling default features</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/e741dd89f1a90a1730a10d38f9c6ce4a992056d3"><code>e741dd8</code></a> fix clippy lints</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/33c8ac922de1bcaf1f7cec61ae98001d600389d5"><code>33c8ac9</code></a> ci: fix minimal versions</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/e35d430e03779e1b2c2c35a3a922f93d32526a68"><code>e35d430</code></a> cargo fmt</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/951fab7ae340ead4c36d40b2f7d87f38d594dee3"><code>951fab7</code></a> typo</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/307777ac78ef302839c074a3b703bfaadfdde9ab"><code>307777a</code></a> Switch to github-actions</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/d1e80a2c6669c28e9809dd7d952fdeee0da7fd5c"><code>d1e80a2</code></a> Clarify config levels documentation</li> <li>Additional commits viewable in <a href="https://github.com/drakulix/simplelog.rs/compare/v0.9.0...v0.10.0">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
bors bot
added a commit
to oberblastmeister/lua-analyzer
that referenced
this pull request
May 7, 2021
3: Bump simplelog from 0.9.0 to 0.10.0 r=oberblastmeister a=dependabot[bot] Bumps [simplelog](https://github.com/drakulix/simplelog.rs) from 0.9.0 to 0.10.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Drakulix/simplelog.rs/blob/master/CHANGELOG.md">simplelog's changelog</a>.</em></p> <blockquote> <h2>v0.10.0</h2> <pre><code>- Fix wrong argument naming (PR [#70](Drakulix/simplelog.rs#70), credits to @scvalex) - *Breaking*: More color customization options (PR [#72](Drakulix/simplelog.rs#72), credits to @mrkline) - Clarify docs on config levels </code></pre> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/1d26f67c78d01f33de460b0f3e7b82863e98f743"><code>1d26f67</code></a> ci: fix tag regex</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/f3603e6fbfe62803554d19553d420510512e23dd"><code>f3603e6</code></a> v0.10.0</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/5d077b6e1abe5bfa97010b5e8f305f56a43859c5"><code>5d077b6</code></a> Use sensible workflow name</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/577a532d82e3325b553e5935cfbf246c2a2e211b"><code>577a532</code></a> Fix some unused imports when disabling default features</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/e741dd89f1a90a1730a10d38f9c6ce4a992056d3"><code>e741dd8</code></a> fix clippy lints</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/33c8ac922de1bcaf1f7cec61ae98001d600389d5"><code>33c8ac9</code></a> ci: fix minimal versions</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/e35d430e03779e1b2c2c35a3a922f93d32526a68"><code>e35d430</code></a> cargo fmt</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/951fab7ae340ead4c36d40b2f7d87f38d594dee3"><code>951fab7</code></a> typo</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/307777ac78ef302839c074a3b703bfaadfdde9ab"><code>307777a</code></a> Switch to github-actions</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/d1e80a2c6669c28e9809dd7d952fdeee0da7fd5c"><code>d1e80a2</code></a> Clarify config levels documentation</li> <li>Additional commits viewable in <a href="https://github.com/drakulix/simplelog.rs/compare/v0.9.0...v0.10.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=simplelog&package-manager=cargo&previous-version=0.9.0&new-version=0.10.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> 4: Bump xshell from 0.1.9 to 0.1.11 r=oberblastmeister a=dependabot[bot] Bumps [xshell](https://github.com/matklad/xshell) from 0.1.9 to 0.1.11. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/matklad/xshell/blob/master/CHANGELOG.md">xshell's changelog</a>.</em></p> <blockquote> <h2>0.1.11</h2> <ul> <li><code>write_file</code> now creates the intervening directory path if it doesn't exit</li> </ul> <h2>0.1.10</h2> <ul> <li><code>echo_cmd</code> output goes to stderr, not stdout</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/matklad/xshell/commit/b8eb8d79f23d2ff1edfae6adc7f4f136b0ca7bcb"><code>b8eb8d7</code></a> Merge <a href="https://github-redirect.dependabot.com/matklad/xshell/issues/24">#24</a></li> <li><a href="https://github.com/matklad/xshell/commit/e30ddecfa10013d81c0e2f9850440016ff400151"><code>e30ddec</code></a> Bump ver & changelog</li> <li><a href="https://github.com/matklad/xshell/commit/b4e5564a0ef795dc870cf689e01f76b23e7e90b1"><code>b4e5564</code></a> Add test that write_file makes directory</li> <li><a href="https://github.com/matklad/xshell/commit/b833187eac84d1e7408542531c6de3173aec444f"><code>b833187</code></a> Document write_file now making a path</li> <li><a href="https://github.com/matklad/xshell/commit/12c7b214d180c80bf771c2a31acbe0b8c9283d5c"><code>12c7b21</code></a> Add mkdir to write_file</li> <li><a href="https://github.com/matklad/xshell/commit/f8f3a4fbf4fef7a922bc9d25ca6741e8950e50b3"><code>f8f3a4f</code></a> Merge <a href="https://github-redirect.dependabot.com/matklad/xshell/issues/21">#21</a></li> <li><a href="https://github.com/matklad/xshell/commit/e6411370821f268607e9d413c3421ffdc86c99d4"><code>e641137</code></a> Bump other version</li> <li><a href="https://github.com/matklad/xshell/commit/2127ae424a43e904e6ffdfebba9730a4e77039cd"><code>2127ae4</code></a> Bump version</li> <li><a href="https://github.com/matklad/xshell/commit/bd4496d82ca54917e89c74bd6db03fd3a7694c4c"><code>bd4496d</code></a> Use stderr for echo_cmd</li> <li>See full diff in <a href="https://github.com/matklad/xshell/compare/v0.1.9...v0.1.11">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=xshell&package-manager=cargo&previous-version=0.1.9&new-version=0.1.11)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This was referenced Sep 22, 2021
bors bot
added a commit
to probe-rs/probe-rs
that referenced
this pull request
Nov 15, 2021
887: build(deps): update simplelog requirement from 0.10.0 to 0.11.0 in /probe-rs-cli-util r=Yatekii a=dependabot[bot] Updates the requirements on [simplelog](https://github.com/drakulix/simplelog.rs) to permit the latest version. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Drakulix/simplelog.rs/blob/master/CHANGELOG.md">simplelog's changelog</a>.</em></p> <blockquote> <h2>v0.11.0</h2> <pre><code>- Add colored log levels using `ansi_term` (PR [#88](Drakulix/simplelog.rs#88), credits to `@manio)` - Add target padding (PR [#85](Drakulix/simplelog.rs#85), credits to `@bytebeamio)` - Add optional color and style support using `paris` crate (PR [#84](Drakulix/simplelog.rs#84), credits to `@manio)` </code></pre> <h2>v0.10.2</h2> <pre><code>- Fix flushing with `BufferedStandardStreams` (PR [#82](Drakulix/simplelog.rs#82), credits to `@mrkline)` </code></pre> <h2>v0.10.1</h2> <pre><code>- Fix TermLogger performance using `termcolor::BufferedStandardStream` (PR [#80](Drakulix/simplelog.rs#80), credits to `@mrkline)` - Add write thread name support for `termlog` (PR [#76](Drakulix/simplelog.rs#76), credits to `@zeroflaw)` </code></pre> <h2>v0.10.0</h2> <pre><code>- Fix wrong argument naming (PR [#70](Drakulix/simplelog.rs#70), credits to `@scvalex)` - *Breaking*: More color customization options (PR [#72](Drakulix/simplelog.rs#72), credits to `@mrkline)` - Clarify docs on config levels </code></pre> <h2>v0.9.0</h2> <pre><code>- Add customizable level label colors (PR [#69](Drakulix/simplelog.rs#69). credits to `@JarrettBillingsley)` - Remove unneeded TermLogError - Future-proof config by adding `#[non_exhaustive]` - Fix compiling with minimal-versions </code></pre> <h2>v0.8.0</h2> <pre><code>- Switch from `term` to `termcolor` (PR [#59](Drakulix/simplelog.rs#59). credits to `@raybritton)` - Fix typo in docs (PR [#58](Drakulix/simplelog.rs#58), credits to `@anthonyjmartinez)` - Switch default padding to `Off`. Padding is annoyingly controversal, just set it to whatever you prefer, if you want it. </code></pre> <h2>v0.7.6</h2> <pre><code>- Derive `Clone`,`Copy`,`PartialEq`,`Eq`,`Debug` and `Hash` for `TerminalMode`. (PR [#56](Drakulix/simplelog.rs#56), credits to `@panhania)` </code></pre> <h2>v0.7.5</h2> <pre><code>- Use `target()` instead of `module_path()` for filtering as suggested by `log`s docs. (PR [#52](Drakulix/simplelog.rs#52), credits to `@tsidea)` - Allow logging thread names and pad thread ids (defaults match the old behaviour). (PR [#53](Drakulix/simplelog.rs#53), credits to `@mulark)` </code></pre> <h2>v0.7.4</h2> <pre><code>- Fixed time formats with </code></pre> <h2>v0.7.3</h2> <pre><code>- Fixed `test` feature </code></pre> <h2>v0.7.2</h2> <pre><code>- Allow Level Padding to be configured </code></pre> <h2>v0.7.1</h2> <pre><code>- Fix `LevelFilter:Off` not turning off parts of the log messages </code></pre> <h2>v0.7.0</h2> <pre><code>- Add local time zone option - Change config to builder pattern avoiding future major version bumps </code></pre> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/ddd6e694b8b5699e04ef20cc6dbb1bbeeeb5041a"><code>ddd6e69</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/drakulix/simplelog.rs/issues/86">#86</a> from manio/master</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/e0585753a1717f0b37aa8ce6f37889f8a985d52c"><code>e058575</code></a> Update CHANGELOG.md</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/a90ab8a14ae346945ee2f449df515d0182921d9e"><code>a90ab8a</code></a> Bump version to v0.11.0 and adjust README</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/cc590d2a364433e4fcc940e16213699de1dd873d"><code>cc590d2</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/drakulix/simplelog.rs/issues/88">#88</a> from manio/level-colorize</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/cda775724849ff11ac2549723496b1afa7b8a737"><code>cda7757</code></a> config: make set_write_log_enable_colors() an ansi_term feature dependant</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/3e0b33649dc9b3bfb6f01b724c9e3c5cfadaba45"><code>3e0b336</code></a> paris_macros: fix <code>this URL is not a hyperlink</code> warnings</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/feb3458fb455f357e7fbcd108d022eb7f712977f"><code>feb3458</code></a> Add a write_log_enable_colors configuration switch</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/1f76fd5a5bddc242eabf98c074a206bca0eff17e"><code>1f76fd5</code></a> introduce colored log levels using ansi_term</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/f41c17969660c2dadc7f2644700c94ea7a649458"><code>f41c179</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/drakulix/simplelog.rs/issues/85">#85</a> from bytebeamio/modulepad</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/09da042e5c5eced2781fa0e051314d814b38582a"><code>09da042</code></a> Remove modulepad example</li> <li>Additional commits viewable in <a href="https://github.com/drakulix/simplelog.rs/compare/v0.10.0...v0.11.0">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - ``@dependabot` rebase` will rebase this PR - ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it - ``@dependabot` merge` will merge this PR after your CI passes on it - ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it - ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging - ``@dependabot` reopen` will reopen this PR if it is closed - ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
bors bot
added a commit
to probe-rs/probe-rs
that referenced
this pull request
Apr 20, 2022
1083: build(deps): update simplelog requirement from 0.11.0 to 0.12.0 in /probe-rs-cli-util r=Tiwalun a=dependabot[bot] Updates the requirements on [simplelog](https://github.com/drakulix/simplelog.rs) to permit the latest version. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Drakulix/simplelog.rs/blob/master/CHANGELOG.md">simplelog's changelog</a>.</em></p> <blockquote> <h2>v0.12.0</h2> <pre><code>- Replaces the semingly unmainted chrono library with the time crate. - Addresses through this update - RUSTSEC-2020-0159 (chrono) - RUSTSEC-2020-0071 (time) - `ConfigBuilder::set_time_to_local` is replaced by `ConfigBuilder::set_time_offset_to_local`. - This function requires the new (and by default activated) `local-offset` feature. - This function may fail, for more information read the docs. - simplelog will not determine the local offset dynamically anymore, but only once, when this config option is set. - Due to safety reasons there is no way to provide this property currently. - `ConfigBuilder::set_time_offset` now takes a `time::UtcOffset` instead of a `chrono::FixedOffset`. - `ConfigBuilder::set_time_format` has been replaced by three new variants - `ConfigBuilder::set_time_format_rfc2822` sets the time format to use the format described by rfc2822. - `ConfigBuilder::set_time_format_rfc3339` sets the time format to use the format described by rfc3339. - `ConfigBuilder::set_time_format_custom` sets the time format to a custom time format best created using `time::macros::format_description`. - Runtime provided time format configuration is possible, but difficult due to lifetime constraints. - Fixing this will require a solution to time-rs/time#429 - *Note*: The default format is unchanged "[hour]:[minute]:[second]" </code></pre> <h2>v0.11.0</h2> <pre><code>- Add colored log levels using `ansi_term` (PR [#88](Drakulix/simplelog.rs#88), credits to `@manio)` - Add target padding (PR [#85](Drakulix/simplelog.rs#85), credits to `@bytebeamio)` - Add optional color and style support using `paris` crate (PR [#84](Drakulix/simplelog.rs#84), credits to `@manio)` </code></pre> <h2>v0.10.2</h2> <pre><code>- Fix flushing with `BufferedStandardStreams` (PR [#82](Drakulix/simplelog.rs#82), credits to `@mrkline)` </code></pre> <h2>v0.10.1</h2> <pre><code>- Fix TermLogger performance using `termcolor::BufferedStandardStream` (PR [#80](Drakulix/simplelog.rs#80), credits to `@mrkline)` - Add write thread name support for `termlog` (PR [#76](Drakulix/simplelog.rs#76), credits to `@zeroflaw)` </code></pre> <h2>v0.10.0</h2> <pre><code>- Fix wrong argument naming (PR [#70](Drakulix/simplelog.rs#70), credits to `@scvalex)` - *Breaking*: More color customization options (PR [#72](Drakulix/simplelog.rs#72), credits to `@mrkline)` - Clarify docs on config levels </code></pre> <h2>v0.9.0</h2> <pre><code>- Add customizable level label colors (PR [#69](Drakulix/simplelog.rs#69). credits to `@JarrettBillingsley)` - Remove unneeded TermLogError - Future-proof config by adding `#[non_exhaustive]` - Fix compiling with minimal-versions </code></pre> <h2>v0.8.0</h2> <pre><code>- Switch from `term` to `termcolor` (PR [#59](Drakulix/simplelog.rs#59). credits to `@raybritton)` - Fix typo in docs (PR [#58](Drakulix/simplelog.rs#58), credits to `@anthonyjmartinez)` - Switch default padding to `Off`. Padding is annoyingly controversal, just set it to whatever you prefer, if you want it. </code></pre> <h2>v0.7.6</h2> <pre><code>- Derive `Clone`,`Copy`,`PartialEq`,`Eq`,`Debug` and `Hash` for `TerminalMode`. (PR [#56](Drakulix/simplelog.rs#56), credits to `@panhania)` </code></pre> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/95275c88b14f204a5e8278cd98072e4ffb0bc7d8"><code>95275c8</code></a> v0.12.0</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/f137eb4a2934faaec2d45652d14065f8560e5c49"><code>f137eb4</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/drakulix/simplelog.rs/issues/101">#101</a> from jacobtread/patch-1</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/ba172540f9e8eb0b31c65e43e234fe3cdc979ee6"><code>ba17254</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/drakulix/simplelog.rs/issues/99">#99</a> from zjp-CN/master</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/44a294fcff08818f5a8a889901508e62adb1bd29"><code>44a294f</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/drakulix/simplelog.rs/issues/95">#95</a> from Drakulix/fix/chrono_dep</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/d9257919d9e4afdf9d7385c4eb07f6031b6a17d9"><code>d925791</code></a> Out of place space?</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/81c6293f9228c78517e19e7801406dd0e5a22e0b"><code>81c6293</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/drakulix/simplelog.rs/issues/100">#100</a> from rusty-snake/patch-1</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/d49c3fd102ba16aa49012ff271e8fcb3d83db6fd"><code>d49c3fd</code></a> config.rs: docs: Add intra-doc links</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/568309c339f936ddf1defad1729a71feddb75a3a"><code>568309c</code></a> add demo for paris feature</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/40808ea9f585b0199368884d56eebfe30a7fcb79"><code>40808ea</code></a> fix the problem of macro hygiene when paris is enabled</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/cf8fc32c318c510afc40fec2d9bdcc8ec4590eed"><code>cf8fc32</code></a> fix TestLogger</li> <li>Additional commits viewable in <a href="https://github.com/drakulix/simplelog.rs/compare/v0.11.0...v0.12.0">compare view</a></li> </ul> </details> <br /> Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - ``@dependabot` rebase` will rebase this PR - ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it - ``@dependabot` merge` will merge this PR after your CI passes on it - ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it - ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging - ``@dependabot` reopen` will reopen this PR if it is closed - ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
bors bot
added a commit
to probe-rs/probe-rs
that referenced
this pull request
Apr 20, 2022
1085: build(deps): bump simplelog from 0.11.2 to 0.12.0 in /target-gen r=Tiwalun a=dependabot[bot] Bumps [simplelog](https://github.com/drakulix/simplelog.rs) from 0.11.2 to 0.12.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Drakulix/simplelog.rs/blob/master/CHANGELOG.md">simplelog's changelog</a>.</em></p> <blockquote> <h2>v0.12.0</h2> <pre><code>- Replaces the semingly unmainted chrono library with the time crate. - Addresses through this update - RUSTSEC-2020-0159 (chrono) - RUSTSEC-2020-0071 (time) - `ConfigBuilder::set_time_to_local` is replaced by `ConfigBuilder::set_time_offset_to_local`. - This function requires the new (and by default activated) `local-offset` feature. - This function may fail, for more information read the docs. - simplelog will not determine the local offset dynamically anymore, but only once, when this config option is set. - Due to safety reasons there is no way to provide this property currently. - `ConfigBuilder::set_time_offset` now takes a `time::UtcOffset` instead of a `chrono::FixedOffset`. - `ConfigBuilder::set_time_format` has been replaced by three new variants - `ConfigBuilder::set_time_format_rfc2822` sets the time format to use the format described by rfc2822. - `ConfigBuilder::set_time_format_rfc3339` sets the time format to use the format described by rfc3339. - `ConfigBuilder::set_time_format_custom` sets the time format to a custom time format best created using `time::macros::format_description`. - Runtime provided time format configuration is possible, but difficult due to lifetime constraints. - Fixing this will require a solution to time-rs/time#429 - *Note*: The default format is unchanged "[hour]:[minute]:[second]" </code></pre> <h2>v0.11.0</h2> <pre><code>- Add colored log levels using `ansi_term` (PR [#88](Drakulix/simplelog.rs#88), credits to `@manio)` - Add target padding (PR [#85](Drakulix/simplelog.rs#85), credits to `@bytebeamio)` - Add optional color and style support using `paris` crate (PR [#84](Drakulix/simplelog.rs#84), credits to `@manio)` </code></pre> <h2>v0.10.2</h2> <pre><code>- Fix flushing with `BufferedStandardStreams` (PR [#82](Drakulix/simplelog.rs#82), credits to `@mrkline)` </code></pre> <h2>v0.10.1</h2> <pre><code>- Fix TermLogger performance using `termcolor::BufferedStandardStream` (PR [#80](Drakulix/simplelog.rs#80), credits to `@mrkline)` - Add write thread name support for `termlog` (PR [#76](Drakulix/simplelog.rs#76), credits to `@zeroflaw)` </code></pre> <h2>v0.10.0</h2> <pre><code>- Fix wrong argument naming (PR [#70](Drakulix/simplelog.rs#70), credits to `@scvalex)` - *Breaking*: More color customization options (PR [#72](Drakulix/simplelog.rs#72), credits to `@mrkline)` - Clarify docs on config levels </code></pre> <h2>v0.9.0</h2> <pre><code>- Add customizable level label colors (PR [#69](Drakulix/simplelog.rs#69). credits to `@JarrettBillingsley)` - Remove unneeded TermLogError - Future-proof config by adding `#[non_exhaustive]` - Fix compiling with minimal-versions </code></pre> <h2>v0.8.0</h2> <pre><code>- Switch from `term` to `termcolor` (PR [#59](Drakulix/simplelog.rs#59). credits to `@raybritton)` - Fix typo in docs (PR [#58](Drakulix/simplelog.rs#58), credits to `@anthonyjmartinez)` - Switch default padding to `Off`. Padding is annoyingly controversal, just set it to whatever you prefer, if you want it. </code></pre> <h2>v0.7.6</h2> <pre><code>- Derive `Clone`,`Copy`,`PartialEq`,`Eq`,`Debug` and `Hash` for `TerminalMode`. (PR [#56](Drakulix/simplelog.rs#56), credits to `@panhania)` </code></pre> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/95275c88b14f204a5e8278cd98072e4ffb0bc7d8"><code>95275c8</code></a> v0.12.0</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/f137eb4a2934faaec2d45652d14065f8560e5c49"><code>f137eb4</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/drakulix/simplelog.rs/issues/101">#101</a> from jacobtread/patch-1</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/ba172540f9e8eb0b31c65e43e234fe3cdc979ee6"><code>ba17254</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/drakulix/simplelog.rs/issues/99">#99</a> from zjp-CN/master</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/44a294fcff08818f5a8a889901508e62adb1bd29"><code>44a294f</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/drakulix/simplelog.rs/issues/95">#95</a> from Drakulix/fix/chrono_dep</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/d9257919d9e4afdf9d7385c4eb07f6031b6a17d9"><code>d925791</code></a> Out of place space?</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/81c6293f9228c78517e19e7801406dd0e5a22e0b"><code>81c6293</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/drakulix/simplelog.rs/issues/100">#100</a> from rusty-snake/patch-1</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/d49c3fd102ba16aa49012ff271e8fcb3d83db6fd"><code>d49c3fd</code></a> config.rs: docs: Add intra-doc links</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/568309c339f936ddf1defad1729a71feddb75a3a"><code>568309c</code></a> add demo for paris feature</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/40808ea9f585b0199368884d56eebfe30a7fcb79"><code>40808ea</code></a> fix the problem of macro hygiene when paris is enabled</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/cf8fc32c318c510afc40fec2d9bdcc8ec4590eed"><code>cf8fc32</code></a> fix TestLogger</li> <li>Additional commits viewable in <a href="https://github.com/drakulix/simplelog.rs/compare/v0.11.2...v0.12.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=simplelog&package-manager=cargo&previous-version=0.11.2&new-version=0.12.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - ``@dependabot` rebase` will rebase this PR - ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it - ``@dependabot` merge` will merge this PR after your CI passes on it - ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it - ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging - ``@dependabot` reopen` will reopen this PR if it is closed - ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
bors bot
added a commit
to rust-corpus/qrates
that referenced
this pull request
Apr 21, 2022
217: Bump simplelog from 0.11.2 to 0.12.0 r=vakaras a=dependabot[bot] Bumps [simplelog](https://github.com/drakulix/simplelog.rs) from 0.11.2 to 0.12.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Drakulix/simplelog.rs/blob/master/CHANGELOG.md">simplelog's changelog</a>.</em></p> <blockquote> <h2>v0.12.0</h2> <pre><code>- Replaces the semingly unmainted chrono library with the time crate. - Addresses through this update - RUSTSEC-2020-0159 (chrono) - RUSTSEC-2020-0071 (time) - `ConfigBuilder::set_time_to_local` is replaced by `ConfigBuilder::set_time_offset_to_local`. - This function requires the new (and by default activated) `local-offset` feature. - This function may fail, for more information read the docs. - simplelog will not determine the local offset dynamically anymore, but only once, when this config option is set. - Due to safety reasons there is no way to provide this property currently. - `ConfigBuilder::set_time_offset` now takes a `time::UtcOffset` instead of a `chrono::FixedOffset`. - `ConfigBuilder::set_time_format` has been replaced by three new variants - `ConfigBuilder::set_time_format_rfc2822` sets the time format to use the format described by rfc2822. - `ConfigBuilder::set_time_format_rfc3339` sets the time format to use the format described by rfc3339. - `ConfigBuilder::set_time_format_custom` sets the time format to a custom time format best created using `time::macros::format_description`. - Runtime provided time format configuration is possible, but difficult due to lifetime constraints. - Fixing this will require a solution to time-rs/time#429 - *Note*: The default format is unchanged "[hour]:[minute]:[second]" </code></pre> <h2>v0.11.0</h2> <pre><code>- Add colored log levels using `ansi_term` (PR [#88](Drakulix/simplelog.rs#88), credits to `@manio)` - Add target padding (PR [#85](Drakulix/simplelog.rs#85), credits to `@bytebeamio)` - Add optional color and style support using `paris` crate (PR [#84](Drakulix/simplelog.rs#84), credits to `@manio)` </code></pre> <h2>v0.10.2</h2> <pre><code>- Fix flushing with `BufferedStandardStreams` (PR [#82](Drakulix/simplelog.rs#82), credits to `@mrkline)` </code></pre> <h2>v0.10.1</h2> <pre><code>- Fix TermLogger performance using `termcolor::BufferedStandardStream` (PR [#80](Drakulix/simplelog.rs#80), credits to `@mrkline)` - Add write thread name support for `termlog` (PR [#76](Drakulix/simplelog.rs#76), credits to `@zeroflaw)` </code></pre> <h2>v0.10.0</h2> <pre><code>- Fix wrong argument naming (PR [#70](Drakulix/simplelog.rs#70), credits to `@scvalex)` - *Breaking*: More color customization options (PR [#72](Drakulix/simplelog.rs#72), credits to `@mrkline)` - Clarify docs on config levels </code></pre> <h2>v0.9.0</h2> <pre><code>- Add customizable level label colors (PR [#69](Drakulix/simplelog.rs#69). credits to `@JarrettBillingsley)` - Remove unneeded TermLogError - Future-proof config by adding `#[non_exhaustive]` - Fix compiling with minimal-versions </code></pre> <h2>v0.8.0</h2> <pre><code>- Switch from `term` to `termcolor` (PR [#59](Drakulix/simplelog.rs#59). credits to `@raybritton)` - Fix typo in docs (PR [#58](Drakulix/simplelog.rs#58), credits to `@anthonyjmartinez)` - Switch default padding to `Off`. Padding is annoyingly controversal, just set it to whatever you prefer, if you want it. </code></pre> <h2>v0.7.6</h2> <pre><code>- Derive `Clone`,`Copy`,`PartialEq`,`Eq`,`Debug` and `Hash` for `TerminalMode`. (PR [#56](Drakulix/simplelog.rs#56), credits to `@panhania)` </code></pre> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/95275c88b14f204a5e8278cd98072e4ffb0bc7d8"><code>95275c8</code></a> v0.12.0</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/f137eb4a2934faaec2d45652d14065f8560e5c49"><code>f137eb4</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/drakulix/simplelog.rs/issues/101">#101</a> from jacobtread/patch-1</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/ba172540f9e8eb0b31c65e43e234fe3cdc979ee6"><code>ba17254</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/drakulix/simplelog.rs/issues/99">#99</a> from zjp-CN/master</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/44a294fcff08818f5a8a889901508e62adb1bd29"><code>44a294f</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/drakulix/simplelog.rs/issues/95">#95</a> from Drakulix/fix/chrono_dep</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/d9257919d9e4afdf9d7385c4eb07f6031b6a17d9"><code>d925791</code></a> Out of place space?</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/81c6293f9228c78517e19e7801406dd0e5a22e0b"><code>81c6293</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/drakulix/simplelog.rs/issues/100">#100</a> from rusty-snake/patch-1</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/d49c3fd102ba16aa49012ff271e8fcb3d83db6fd"><code>d49c3fd</code></a> config.rs: docs: Add intra-doc links</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/568309c339f936ddf1defad1729a71feddb75a3a"><code>568309c</code></a> add demo for paris feature</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/40808ea9f585b0199368884d56eebfe30a7fcb79"><code>40808ea</code></a> fix the problem of macro hygiene when paris is enabled</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/cf8fc32c318c510afc40fec2d9bdcc8ec4590eed"><code>cf8fc32</code></a> fix TestLogger</li> <li>Additional commits viewable in <a href="https://github.com/drakulix/simplelog.rs/compare/v0.11.2...v0.12.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=simplelog&package-manager=cargo&previous-version=0.11.2&new-version=0.12.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - ``@dependabot` rebase` will rebase this PR - ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it - ``@dependabot` merge` will merge this PR after your CI passes on it - ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it - ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging - ``@dependabot` reopen` will reopen this PR if it is closed - ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> 221: Bump cargo from 0.60.0 to 0.61.0 r=vakaras a=dependabot[bot] Bumps [cargo](https://github.com/rust-lang/cargo) from 0.60.0 to 0.61.0. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/rust-lang/cargo/commit/d1fd9fe2c40a1a56af9132b5c92ab963ac7ae422"><code>d1fd9fe</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/cargo/issues/10436">#10436</a> - cuviper:rust-1.60.0-config-verbosity, r=alexcrichton</li> <li><a href="https://github.com/rust-lang/cargo/commit/6034981325f22adad46a2f94fd1c665fa7d7a2a1"><code>6034981</code></a> Fix term.verbose without quiet, and vice versa</li> <li><a href="https://github.com/rust-lang/cargo/commit/1e5cac721024d00732ecd1133f40254b78af374f"><code>1e5cac7</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/cargo/issues/10413">#10413</a> - ehuss:beta-fix-rustflags-gate, r=alexcrichton</li> <li><a href="https://github.com/rust-lang/cargo/commit/0ebfe2e30cd32452850c247b34719fa87a0a5b48"><code>0ebfe2e</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/cargo/issues/10396">#10396</a> - jonhoo:clap-deprecations, r=epage</li> <li><a href="https://github.com/rust-lang/cargo/commit/ba955c5dbb84a83a00b54aacebaff3d2fc56ae1f"><code>ba955c5</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/cargo/issues/10411">#10411</a> - ehuss:fix-rustflags-gate, r=alexcrichton</li> <li><a href="https://github.com/rust-lang/cargo/commit/ea2a21c994ca1e4d4c49412827b3cf4dcb158b1d"><code>ea2a21c</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/cargo/issues/10379">#10379</a> - weihanglo:issue-10370, r=alexcrichton</li> <li><a href="https://github.com/rust-lang/cargo/commit/27c599c0cc9907fb88d89671ab730f2effa7dc83"><code>27c599c</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/cargo/issues/10385">#10385</a> - hi-rustin:rustin-patch-badge, r=alexcrichton</li> <li><a href="https://github.com/rust-lang/cargo/commit/8fa412029261b163f356ac153a975c8758cf961a"><code>8fa4120</code></a> Add a badge for github actions</li> <li><a href="https://github.com/rust-lang/cargo/commit/28fffd646aed48c790474644ee14b54ad97ac34d"><code>28fffd6</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/cargo/issues/10380">#10380</a> - hi-rustin:rustin-patch-badges, r=alexcrichton</li> <li><a href="https://github.com/rust-lang/cargo/commit/d76449f52c447415bd104f250e66d9d6396cbdd7"><code>d76449f</code></a> Remove outdated badges</li> <li>Additional commits viewable in <a href="https://github.com/rust-lang/cargo/compare/0.60.0...0.61.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=cargo&package-manager=cargo&previous-version=0.60.0&new-version=0.61.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - ``@dependabot` rebase` will rebase this PR - ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it - ``@dependabot` merge` will merge this PR after your CI passes on it - ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it - ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging - ``@dependabot` reopen` will reopen this PR if it is closed - ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
bors bot
added a commit
to rust-corpus/qrates
that referenced
this pull request
Apr 21, 2022
217: Bump simplelog from 0.11.2 to 0.12.0 r=vakaras a=dependabot[bot] Bumps [simplelog](https://github.com/drakulix/simplelog.rs) from 0.11.2 to 0.12.0. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/Drakulix/simplelog.rs/blob/master/CHANGELOG.md">simplelog's changelog</a>.</em></p> <blockquote> <h2>v0.12.0</h2> <pre><code>- Replaces the semingly unmainted chrono library with the time crate. - Addresses through this update - RUSTSEC-2020-0159 (chrono) - RUSTSEC-2020-0071 (time) - `ConfigBuilder::set_time_to_local` is replaced by `ConfigBuilder::set_time_offset_to_local`. - This function requires the new (and by default activated) `local-offset` feature. - This function may fail, for more information read the docs. - simplelog will not determine the local offset dynamically anymore, but only once, when this config option is set. - Due to safety reasons there is no way to provide this property currently. - `ConfigBuilder::set_time_offset` now takes a `time::UtcOffset` instead of a `chrono::FixedOffset`. - `ConfigBuilder::set_time_format` has been replaced by three new variants - `ConfigBuilder::set_time_format_rfc2822` sets the time format to use the format described by rfc2822. - `ConfigBuilder::set_time_format_rfc3339` sets the time format to use the format described by rfc3339. - `ConfigBuilder::set_time_format_custom` sets the time format to a custom time format best created using `time::macros::format_description`. - Runtime provided time format configuration is possible, but difficult due to lifetime constraints. - Fixing this will require a solution to time-rs/time#429 - *Note*: The default format is unchanged "[hour]:[minute]:[second]" </code></pre> <h2>v0.11.0</h2> <pre><code>- Add colored log levels using `ansi_term` (PR [#88](Drakulix/simplelog.rs#88), credits to `@manio)` - Add target padding (PR [#85](Drakulix/simplelog.rs#85), credits to `@bytebeamio)` - Add optional color and style support using `paris` crate (PR [#84](Drakulix/simplelog.rs#84), credits to `@manio)` </code></pre> <h2>v0.10.2</h2> <pre><code>- Fix flushing with `BufferedStandardStreams` (PR [#82](Drakulix/simplelog.rs#82), credits to `@mrkline)` </code></pre> <h2>v0.10.1</h2> <pre><code>- Fix TermLogger performance using `termcolor::BufferedStandardStream` (PR [#80](Drakulix/simplelog.rs#80), credits to `@mrkline)` - Add write thread name support for `termlog` (PR [#76](Drakulix/simplelog.rs#76), credits to `@zeroflaw)` </code></pre> <h2>v0.10.0</h2> <pre><code>- Fix wrong argument naming (PR [#70](Drakulix/simplelog.rs#70), credits to `@scvalex)` - *Breaking*: More color customization options (PR [#72](Drakulix/simplelog.rs#72), credits to `@mrkline)` - Clarify docs on config levels </code></pre> <h2>v0.9.0</h2> <pre><code>- Add customizable level label colors (PR [#69](Drakulix/simplelog.rs#69). credits to `@JarrettBillingsley)` - Remove unneeded TermLogError - Future-proof config by adding `#[non_exhaustive]` - Fix compiling with minimal-versions </code></pre> <h2>v0.8.0</h2> <pre><code>- Switch from `term` to `termcolor` (PR [#59](Drakulix/simplelog.rs#59). credits to `@raybritton)` - Fix typo in docs (PR [#58](Drakulix/simplelog.rs#58), credits to `@anthonyjmartinez)` - Switch default padding to `Off`. Padding is annoyingly controversal, just set it to whatever you prefer, if you want it. </code></pre> <h2>v0.7.6</h2> <pre><code>- Derive `Clone`,`Copy`,`PartialEq`,`Eq`,`Debug` and `Hash` for `TerminalMode`. (PR [#56](Drakulix/simplelog.rs#56), credits to `@panhania)` </code></pre> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/95275c88b14f204a5e8278cd98072e4ffb0bc7d8"><code>95275c8</code></a> v0.12.0</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/f137eb4a2934faaec2d45652d14065f8560e5c49"><code>f137eb4</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/drakulix/simplelog.rs/issues/101">#101</a> from jacobtread/patch-1</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/ba172540f9e8eb0b31c65e43e234fe3cdc979ee6"><code>ba17254</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/drakulix/simplelog.rs/issues/99">#99</a> from zjp-CN/master</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/44a294fcff08818f5a8a889901508e62adb1bd29"><code>44a294f</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/drakulix/simplelog.rs/issues/95">#95</a> from Drakulix/fix/chrono_dep</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/d9257919d9e4afdf9d7385c4eb07f6031b6a17d9"><code>d925791</code></a> Out of place space?</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/81c6293f9228c78517e19e7801406dd0e5a22e0b"><code>81c6293</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/drakulix/simplelog.rs/issues/100">#100</a> from rusty-snake/patch-1</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/d49c3fd102ba16aa49012ff271e8fcb3d83db6fd"><code>d49c3fd</code></a> config.rs: docs: Add intra-doc links</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/568309c339f936ddf1defad1729a71feddb75a3a"><code>568309c</code></a> add demo for paris feature</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/40808ea9f585b0199368884d56eebfe30a7fcb79"><code>40808ea</code></a> fix the problem of macro hygiene when paris is enabled</li> <li><a href="https://github.com/Drakulix/simplelog.rs/commit/cf8fc32c318c510afc40fec2d9bdcc8ec4590eed"><code>cf8fc32</code></a> fix TestLogger</li> <li>Additional commits viewable in <a href="https://github.com/drakulix/simplelog.rs/compare/v0.11.2...v0.12.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=simplelog&package-manager=cargo&previous-version=0.11.2&new-version=0.12.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - ``@dependabot` rebase` will rebase this PR - ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it - ``@dependabot` merge` will merge this PR after your CI passes on it - ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it - ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging - ``@dependabot` reopen` will reopen this PR if it is closed - ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> 221: Bump cargo from 0.60.0 to 0.61.0 r=vakaras a=dependabot[bot] Bumps [cargo](https://github.com/rust-lang/cargo) from 0.60.0 to 0.61.0. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/rust-lang/cargo/commit/d1fd9fe2c40a1a56af9132b5c92ab963ac7ae422"><code>d1fd9fe</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/cargo/issues/10436">#10436</a> - cuviper:rust-1.60.0-config-verbosity, r=alexcrichton</li> <li><a href="https://github.com/rust-lang/cargo/commit/6034981325f22adad46a2f94fd1c665fa7d7a2a1"><code>6034981</code></a> Fix term.verbose without quiet, and vice versa</li> <li><a href="https://github.com/rust-lang/cargo/commit/1e5cac721024d00732ecd1133f40254b78af374f"><code>1e5cac7</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/cargo/issues/10413">#10413</a> - ehuss:beta-fix-rustflags-gate, r=alexcrichton</li> <li><a href="https://github.com/rust-lang/cargo/commit/0ebfe2e30cd32452850c247b34719fa87a0a5b48"><code>0ebfe2e</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/cargo/issues/10396">#10396</a> - jonhoo:clap-deprecations, r=epage</li> <li><a href="https://github.com/rust-lang/cargo/commit/ba955c5dbb84a83a00b54aacebaff3d2fc56ae1f"><code>ba955c5</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/cargo/issues/10411">#10411</a> - ehuss:fix-rustflags-gate, r=alexcrichton</li> <li><a href="https://github.com/rust-lang/cargo/commit/ea2a21c994ca1e4d4c49412827b3cf4dcb158b1d"><code>ea2a21c</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/cargo/issues/10379">#10379</a> - weihanglo:issue-10370, r=alexcrichton</li> <li><a href="https://github.com/rust-lang/cargo/commit/27c599c0cc9907fb88d89671ab730f2effa7dc83"><code>27c599c</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/cargo/issues/10385">#10385</a> - hi-rustin:rustin-patch-badge, r=alexcrichton</li> <li><a href="https://github.com/rust-lang/cargo/commit/8fa412029261b163f356ac153a975c8758cf961a"><code>8fa4120</code></a> Add a badge for github actions</li> <li><a href="https://github.com/rust-lang/cargo/commit/28fffd646aed48c790474644ee14b54ad97ac34d"><code>28fffd6</code></a> Auto merge of <a href="https://github-redirect.dependabot.com/rust-lang/cargo/issues/10380">#10380</a> - hi-rustin:rustin-patch-badges, r=alexcrichton</li> <li><a href="https://github.com/rust-lang/cargo/commit/d76449f52c447415bd104f250e66d9d6396cbdd7"><code>d76449f</code></a> Remove outdated badges</li> <li>Additional commits viewable in <a href="https://github.com/rust-lang/cargo/compare/0.60.0...0.61.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=cargo&package-manager=cargo&previous-version=0.60.0&new-version=0.61.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - ``@dependabot` rebase` will rebase this PR - ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it - ``@dependabot` merge` will merge this PR after your CI passes on it - ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it - ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging - ``@dependabot` reopen` will reopen this PR if it is closed - ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TermLogger: Expose termcolor::ColorChoice
Command line interfaces that write colored output usually give users
an option to turn it off, or make it automatically shut off when writing
to a file, pipe, or unsupported terminal. termcolor already has some
nice machinery to handle this sort of thing with ColorChoice, so expose
it when creating a TermLogger.
Programmers (such as myself) who use simplelog and want to give users
this choice only have ugly alternatives. For example, you could fall
back to a WriteLogger if the user doesn't want color, but then you:
Lose out on the "mixed" logging mode you get from TerminalMode::Mixed
Have to reimplement nice ColorChoice::Auto behavior yourself,
on top of termcolor.
TermLogger/ConfigBuilder: Make colors optional
White isn't a good default for those with light terminal screens
(brighter background, darker text). This is already trivial in
termcolor, so just allow level colors to be None.