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

Fix #264: Add support of styling customtitleFormatter#265

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

Open
husa wants to merge2 commits intoLogRocket:master
base:master
Choose a base branch
Loading
fromhusa:master

Conversation

@husa
Copy link

@husahusa commentedNov 13, 2017
edited
Loading

Fix #264 : Right now, there's no way to style console output with css when using customtitleFormatter.

This PR adds ability to returnArray fromtitleFormatter that will be spread when passed to logger.
Eg. support this:

createLogger({titleFormatter(action,time,took){return[`%caction %c${action.type} %c@${time} %c(in${took.toFixed(2)})`,'color: gray; font-weight: lighter;','color: red;','color: blue; font-weight: lighter;','color: green; font-weight: lighter;'];}});

miklosme, eranimo, pioluk, and ntltd reacted with hooray emoji
@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@539dab5).Click here to learn what that means.
The diff coverage is0%.

Impacted file tree graph

@@            Coverage Diff            @@##             master     #265   +/-   ##=========================================  Coverage          ?   81.45%           =========================================  Files             ?        5             Lines             ?      151             Branches          ?        0           =========================================  Hits              ?      123             Misses            ?       28             Partials          ?        0
Impacted FilesCoverage Δ
src/core.js72.36% <0%> (ø)

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last update539dab5...92cddfc. Read thecomment docs.

@husa
Copy link
Author

@evgenyrodionov for some reason, "codecov" can't find latest coverage report frommaster. Maybe it's because Travis build is failing onmaster.

@grushetsky
Copy link
Collaborator

@husa, the custom styling of log messages is going to be refactored in the next version of Redux Logger. You can read more about it in the issue #292.

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

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@husa@codecov-io@grushetsky

[8]ページ先頭

©2009-2025 Movatter.jp