GithubHelp home page GithubHelp logo

Comments (6)

pmwmedia avatar pmwmedia commented on May 25, 2024

You need the rolling file writer (tinylog.writer = rollingfile). Only the rolling file writer supports starting new log files based on rules. It appends existing log files automatically, so you can remove the line tinylog.writer.append = true.

I haven used Amazon S3 bucket yet. Thus, I can't give any suggestions about Amazon S3 bucket itself. The most developers (including me) prefer to use a property file to configure tinylog rather than Java code.

from tinylog.

sumit784 avatar sumit784 commented on May 25, 2024

Thanks for responding.

Using RollingFile writer, will it support writing from multiple threads ?
The test case is, lets say there are 1000 users using our android app at the same time and we are logging their activities in our log file.
will Rollingfile supports writing all these 1000 user values, written to the same file ?

from tinylog.

pmwmedia avatar pmwmedia commented on May 25, 2024

tinylog is completly thread-safe. All writes, including the rollging file writer, supports multiple threads. The shared file writer supports additionally that multiple applications can write to the same log file at the same time. But it doesn't support rolling.

from tinylog.

sumit784 avatar sumit784 commented on May 25, 2024

So by "multiple applications can write" , did you mean, several different application or "multiple instances" of an application ( like an android app with 10,000 downloads/ users)

I just want to make sure that Rolling Write will be best choice for android app, where data from 10,000 running apps is written to the same log file.

from tinylog.

pmwmedia avatar pmwmedia commented on May 25, 2024

I mean both: several different applications and/or multiple instances of an application. However, usually you run only one instance of an app on a device!? Do you plan that thousands of apps log to a remote machine? In this case, you should think about a specialized logging server. Maybe a Graylog server with an external GELF writer for tinylog could be a solution.

from tinylog.

github-actions avatar github-actions commented on May 25, 2024

This closed issue has been locked automatically. However, please feel free to file a new issue.

from tinylog.

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.