gios / gzipper

CLI for compressing files.
https://www.npmjs.com/package/gzipper
GNU General Public License v3.0
68 stars 13 forks source link

Can't turn off logs completely #107

Closed coldfeudal closed 4 months ago

coldfeudal commented 6 months ago

Basically there is no silent argument or something like that, so this part always fires

// In src/Compress.ts
Logger.log(
  `${filesCount} ${
    filesCount > 1 ? 'files have' : 'file has'
  } been compressed. (${Helpers.readableHrtime(hrtime)})`,
  LogLevel.SUCCESS,
);

Is there any way to make it work or sould there be a switch? Expecting something like silent: true

gios commented 5 months ago

Hey @coldfeudal, What about logging only errors with --verbose? This part won't be fired when this flag is not set. I'm about to prepare a new version, you can check the progress here #108

gios commented 4 months ago

A new version v8 has been published