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

Disable to log "I'm ready!" #962

Closed
hata6502 opened this issue Nov 29, 2019 · 3 comments
Closed

Disable to log "I'm ready!" #962

hata6502 opened this issue Nov 29, 2019 · 3 comments

Comments

@hata6502
Copy link
Contributor

The message when Editor.js is ready:

I'm ready! (ノ◕ヮ◕)ノ*:・゚✧

may be not needed for some production uses.
Also this message may prevent to use test tools.
When using jest to application contains Editor.js, "I'm ready!" messages are logged many times.

      %cEditor.js 2.15.1%c I'm ready! (ノ◕ヮ◕)ノ*:・゚✧ line-height: 1em;
                  color: #006FEA;
                  display: inline-block;
                  font-size: 11px;
                  line-height: 1em;
                  background-color: #fff;
                  padding: 4px 9px;
                  border-radius: 30px;
                  border: 1px solid rgba(56, 138, 229, 0.16);
                  margin: 4px 5px 4px 0; color: #E24A75
      %cEditor.js 2.15.1%c I'm ready! (ノ◕ヮ◕)ノ*:・゚✧ line-height: 1em;
                  color: #006FEA;
                  display: inline-block;
                  font-size: 11px;
                  line-height: 1em;
                  background-color: #fff;
                  padding: 4px 9px;
                  border-radius: 30px;
                  border: 1px solid rgba(56, 138, 229, 0.16);
                  margin: 4px 5px 4px 0; color: #E24A75
……

https://github.com/codex-team/editor.js/blob/master/src/components/core.ts#L78

@hata6502
Copy link
Contributor Author

hata6502 commented Dec 2, 2019

Thank you!!
It became easier to test!

@neSpecc
Copy link
Member

neSpecc commented Dec 2, 2019

Resolved in 2.16

@zbcms
Copy link

zbcms commented Jul 24, 2023

config
const LogLevels = {
VERBOSE: 'VERBOSE',
INFO: 'INFO',
WARN: 'WARN',
ERROR: 'ERROR',
}
set to config
logLevel={LogLevels.ERROR}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants