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

Not able to disable logging #183

Open
AdressaAgne opened this issue Oct 10, 2022 · 4 comments
Open

Not able to disable logging #183

AdressaAgne opened this issue Oct 10, 2022 · 4 comments

Comments

@AdressaAgne
Copy link

Documentation says you can disable logs with:

{
  svgicons2svgfont: {
    log: (message) => {}
  }
}

But it does not disable all logging, this still shows up

SUCCESS TTF font successfully created!
  ╰┈▶ /Users/.../fonts/icons.ttf

SUCCESS WOFF2 font successfully created!
  ╰┈▶ /Users/.../fonts/icons.woff2

SUCCESS WOFF font successfully created!
  ╰┈▶ /Users/.../fonts/icons.woff

https://github.com/jaywcjlove/svgtofont#svgicons2svgfontlog

@jaywcjlove
Copy link
Owner

@OrangeeWeb This is not the logging configuration of the tool, but the configuration of the package svgicons2svgfont.

@jaywcjlove
Copy link
Owner

@OrangeeWeb Upgrade v3.19.0

svgtofont({
  log: false,
  logger: (msg) => {

  }
})

github-actions bot pushed a commit that referenced this issue Oct 24, 2022
@Grapdevs
Copy link

Grapdevs commented Nov 10, 2022

log: false,
  logger: (msg) => {

  }

I have used this under settings SVGfont and log:function(){} under svgicons2svgfont
But still i am getting logs.

But these configs are working fine

`svgtofont({
  log:function(){},
  logger:(msg) => {

  },
  })`

By this am getting log result options.logger:: [Function: logger]
Let me know if I missed something

@jaywcjlove
Copy link
Owner

@Grapdevs Upgrade v3.19.1

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

2 participants