Sign in
Log inSign up

For logging, should we use file (log4j) or a database (SQL Lite / MongoDB)?

Default profile photo
Anonymous
·Aug 16, 2017

Hi

At work, we want to build logging micro-service for storing events for our applications.

We can have at max 100 users at the same time. Our hotline always needs to see log when our customers have a problem.

At the moment, we got file storage with log4j in our java applications.

What did you think about storing data in the database too? It can be easier to query if we store it in a database.

Which database should we use? (I thought to use SQL lite for its "lite" aspect or MongoDB because there will be insert/read queries only)

Thank's for your help

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct