Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Control log ANSI output via boolean--log-with-ansi option#543

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
joseluisq merged 2 commits intomasterfromfeat-log-ansi-support
May 17, 2025

Conversation

joseluisq
Copy link
Collaborator

Description

This PR adds support for controlling ANSI escape codes for colors and other text formatting when logging via a new boolean--log-with-ansi CLI option and its equivalentSERVER_LOG_WITH_ANSI env.

No ANSI by default

Note that from now on, SWS will be no-ansi by default. If you want colored log output, then use--log-with-ansi.
For example:

$ static-web-server -p 8788 -d ./public/ -g trace -z --log-with-ansi

Related Issue

Motivation and Context

Itresolves#540.

How Has This Been Tested?

Screenshots (if appropriate):

NOTE: ANSI escape codes for colors and other text formatting isnow disabled by default, if wanted then use --log-with-ansi or itsSERVER_LOG_WITH_ANSI env equivalent.For example:$ static-web-server -p 8788 -d ./docker/public/ -g trace -z --log-with-ansi
@joseluisqjoseluisq added enhancementNew feature or request v2v2 release labelsMay 17, 2025
@semanticdiff-comSemanticDiff.com
Copy link

semanticdiff-combot commentedMay 17, 2025
edited
Loading

Review changes with  SemanticDiff

Changed Files
FileStatus
  docs/content/configuration/environment-variables.mdUnsupported file format
  docs/content/features/logging.mdUnsupported file format
  src/logger.rs  0% smaller
  src/settings/cli.rs  0% smaller
  src/settings/file.rs  0% smaller
  src/settings/mod.rs  0% smaller

@joseluisqjoseluisq added this to thev2.37.0 milestoneMay 17, 2025
@joseluisqjoseluisq changed the titleControl log ansi support via boolean--log-with-ansi optionControl log ANSI output via boolean--log-with-ansi optionMay 17, 2025
@joseluisqjoseluisq merged commit0236980 intomasterMay 17, 2025
@joseluisqjoseluisq deleted the feat-log-ansi-support branchMay 17, 2025 12:39
@joseluisqjoseluisq mentioned this pull requestMay 17, 2025
1 task
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
enhancementNew feature or requestv2v2 release
Projects
None yet
Milestone
v2.37.0
Development

Successfully merging this pull request may close these issues.

Support disabling log colors
1 participant
@joseluisq

[8]ページ先頭

©2009-2025 Movatter.jp