jaywcjlove / svgtofont

Read a set of SVG icons and ouput a TTF/EOT/WOFF/WOFF2/SVG font.
https://jaywcjlove.github.io/svgtofont
MIT License
515 stars 81 forks source link

Not able to disable logging #183

Open AdressaAgne opened 1 year ago

AdressaAgne commented 1 year ago

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 commented 1 year ago

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

jaywcjlove commented 1 year ago

@OrangeeWeb Upgrade v3.19.0

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

  }
})
Grapdevs commented 1 year ago
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 commented 1 year ago

@Grapdevs Upgrade v3.19.1