Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3598034
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:11:32+00:00 2026-05-18T20:11:32+00:00

During last time I made many integrations (data transfer from one place to another,

  • 0

During last time I made many integrations (data transfer from one place to another, including DB,SSH,FTP,etc), and for each I need to log some statistics (e.g. how many files updated, how many db rows inserted, errors occurred, etc). All this integrations work once per day and until some error occurred, i’m not interested in logs. But when error occur, i need some statistics for previous runs.
Basically I done 5-10 int variables in main class, and output them to log at the end. But it is not very convenient to create each time multiple variables, and then code to output them. Also in current, it will be 20+ statistic variables for various places (so i need at least separate class for them).

I just wonder if there is already some Java library that can help me.

Basically
in code I want:

statistics.increase(counterName); //to increase counter
statistics.out(); //to get string of somehow formatted statistics
statistics.out(counterName); //to get string for specific counter

Ideally:

could work with no configuration
support for slf4j
statistics.adjust(counterName, value);
statistics.addcounter(counterName, tagName, initial value, increment);
statistics.outTag(tagName); //output counters with specific tag
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T20:11:32+00:00Added an answer on May 18, 2026 at 8:11 pm

    Heh, after few days of searching, i started own project:

    http://code.google.com/p/tinystat/

    If you find some alternative, that could do same, I would be very appreciate if you post it here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

During last time I made many integrations (data transfer from one place to another,
I want to modify FTP so that it recovers from the last session during
During the work on my iPhone application the icon changed from time to time.
I spent a good portion of time last week working on serialization. During that
During the last few weeks, I had the opportunity to read two documents: The
I have been using stackoverflow vastly during the last year - an excellent source
During compilation process many errors are thrown on the screen. To start resolving them
During Session Start, one has access to the Request object. How about Session End,
I have looked a bit into cryptography and related matters during the last couple
I have an application working in localhost and also heroku. The last time that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.