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 6970305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:41:34+00:00 2026-05-27T16:41:34+00:00

I have seen lots of library written in C and C++ programming languages in

  • 0

I have seen lots of library written in C and C++ programming languages in which each library has its own method for debug printing. The most common I have seen is:

User sets flag for this

1> for error prints
2> for warning prints
3> for debug values prints
4> for getting all this print on stdout/stderr
5> for getting all this print on logfile

One more best example is in Gstremer Library they are providing

debug level mechanism

level-1 for error
level-2 for warning
level-3 for debug
level-4 for info
level-5 for log

If user passes level 5 then all prints will be there; if he sets 2 then only error and warning will be there.

So now is there any standard or better methods for such debug prints in library/project?

  • 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-27T16:41:34+00:00Added an answer on May 27, 2026 at 4:41 pm

    Any system similar to that is reasonable; there isn’t a de facto standard that I know of. You can provide functions to send the output to different files. More complex systems might allow you to recognize different subsystems, and to set different debug levels for different subsystems. But that is fairly unusual and depends on whether the library can be sensibly subdivided into subsystems.

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

Sidebar

Related Questions

So, this question has been asked lots, and i have seen many different answers,
I have seen lots of questions and solutions on File upload using Selenium WebDriver
I have seen this talked about but never answered. Maybe it has and I'm
I have seen this question and its answers and they clear up some of
I have seen lots of information about the Lua scripting language for game developement,
We have seen lots of discussion in SO regarding the class vs struct in
Is it really possible? i have seen lots of my friends sending me big
Not looking really for a book. I have seen lots of references and links
I have seen lots of codes where the coders define an init() function for
I have seen lots of ways of running Perl code or scripts, with different

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.