Git Product home page Git Product logo

Comments (4)

iccicci avatar iccicci commented on July 17, 2024

Hi @Ciph3r-Zer0 ,

it seems when you read the docs you've missed the filename paragraph 😉

If you use a string, the default filename generator function is used, otherwise you can provide your own filename generator function to completely customize the generated file names.

If this helps, please feel free to close this issue.

from rotating-file-stream.

Ciph3r-Zer0 avatar Ciph3r-Zer0 commented on July 17, 2024

Hello, thanks for replying
yes this solves my problem, but why is there 2 file.log files in the directory now?
The first file is called file.log which is the current log file
But the second file is called file.log.txt which contains the path for compressed files like this:
logs\1402-02-19_23-46-00_1.log.gz logs\1402-02-19_23-46-05_1.log.gz logs\1402-02-19_23-46-10_1.log.gz logs\1402-02-19_23-46-15_1.log.gz logs\1402-02-19_23-46-20_1.log.gz logs\1402-02-19_23-46-25_1.log.gz logs\1402-02-19_23-46-30_1.log.gz logs\1402-02-19_23-46-35_1.log.gz

from rotating-file-stream.

iccicci avatar iccicci commented on July 17, 2024

Hi @Ciph3r-Zer0 ,

it seems the .txt file is the history file; if you use maxFiles or maxSize that file contains the history of the files to check to respect the limits.

Its name can be customized through the history option.

from rotating-file-stream.

Ciph3r-Zer0 avatar Ciph3r-Zer0 commented on July 17, 2024

Yeap, it worked. Thanks

from rotating-file-stream.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.