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

scootermaster

Platinum Member
Nov 29, 2005
2,411
0
0
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?
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
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.
 

scootermaster

Platinum Member
Nov 29, 2005
2,411
0
0
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.
 

Dimmu

Senior member
Jun 24, 2005
890
0
0
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.