Open wuyinq opened 1 year ago
$ hexdump -C -n2 my.log.gz
00000000 1f 8b |..|
00000002
$ file my.log.gz
my.log.gz: gzip compressed data, original size modulo 2^32 1413
gzip files start with 0x1F, 0x1B (see also "Magic number" on https://en.wikipedia.org/wiki/Gzip). Do your files have the same start bytes?
$ hexdump -C -n2 my.log.gz 00000000 1f 8b |..| 00000002 $ file my.log.gz my.log.gz: gzip compressed data, original size modulo 2^32 1413
gzip files start with 0x1F, 0x1B (see also "Magic number" on https://en.wikipedia.org/wiki/Gzip). Do your files have the same start bytes?
No, brother, I get this:
$ hexdump -C -n2 **.log.gz
00000000 00 00
00000002
$ file **.log.gz
**.log.gz: data
gunzip the zipped log file occurs error like this:![image](https://github.com/natefinch/lumberjack/assets/76110805/867dd4b3-1edf-43f0-902b-949fa9ff1866)
And this is the log init function:![image](https://github.com/natefinch/lumberjack/assets/76110805/273a7666-78f1-4979-be06-ae4bc5c552e9)