• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

C++ "output" library? (Update: I meant to say "logging" library. Anyone use Pantheios? Anything else?)

scootermaster

Platinum Member
So I was wondering if there was some sort of library that'd, like, handle things like output-levels (maybe even masked, so you could trigger certain combinations), and automatically change the stream (file, console), etc. It'd be nice if I could just text-replace the couts in my code, but that's probably asking too much.

Anyone have any idea what I'm talking about?
 
You're looking for a logging framework it seems. I use log4net in my .NET applications and I'm not sure of any others, but it certainly has all the features you describe and you can configure the whole thing through your .config file for the exe.
 
Originally posted by: Crusty
You're looking for a logging framework it seems. I use log4net in my .NET applications and I'm not sure of any others, but it certainly has all the features you describe and you can configure the whole thing through your .config file for the exe.

Huh. Yeah, didn't even think of it in terms of logging...I'm looking at things like fastformat. But you're totally right! Thanks for the suggestion.

As an addendum: this is Unix console C++, so no exciting .NET stuff or anything.
 
Originally posted by: scootermaster
Originally posted by: Crusty
You're looking for a logging framework it seems. I use log4net in my .NET applications and I'm not sure of any others, but it certainly has all the features you describe and you can configure the whole thing through your .config file for the exe.

Huh. Yeah, didn't even think of it in terms of logging...I'm looking at things like fastformat. But you're totally right! Thanks for the suggestion.

As an addendum: this is Unix console C++, so no exciting .NET stuff or anything.

For unmanaged C++, log4cpp should do you fine.
 
Back
Top