www.digitalmars.com         C & C++   DMDScript  

c++.stlsoft - [Pantheios] A change in the design philosophy?

reply Shuckey <Shuckey gmail.com> writes:
Hello!

First of all, I hope you guys know that there are people out there who are
very grateful for your work on Pantheios. Cheers.

However, I have slightly different requirements for a logging library. I
need to define a hierarchy of logged events, allowing custom grouping and
precise selection.

For example, let's say I want to monitor traffic on a FTP site. I want to
be able to switch between the following states (at runtime, of course):

a) all network traffic is logged.
b) network traffic on the control connection is logged.
c) network traffic on the data connection is logged.
d) ...

Does Pantheios have an out-of-the-box solution for this problem? Will it
ever have?

If I have to 'roll my own', could you provide some guidelines?


Thank you in advance,

				Hrvoje "Shuckey" Bratanic
Jul 31 2007
parent Matthew Wilson <no-one nowhere.no.com> writes:
Shuckey Wrote:

 Hello!
 
 First of all, I hope you guys know that there are people out there who are
 very grateful for your work on Pantheios. Cheers.
Thanks! Hope you're spreading the word. ;-)
 However, I have slightly different requirements for a logging library. I
 need to define a hierarchy of logged events, allowing custom grouping and
precise selection.
 
 For example, let's say I want to monitor traffic on a FTP site. I want to
 be able to switch between the following states (at runtime, of course):
 
 a) all network traffic is logged.
 b) network traffic on the control connection is logged.
 c) network traffic on the data connection is logged.
 d) ...
 
 Does Pantheios have an out-of-the-box solution for this problem?
Not at the moment. However, it's worth noting that a commercial implementation of a networking multiplexer that I wrote for a big client here "down under" a couple of years go use Pantheios. And, importantly, it has runtime selection across the eight stock logging levels, and across the 8 different server components, constituting a selection grid of 64 independent points. This was implemented using a custom front-end, that interfaced with a separate GUI controller. I use a similar custom scheme for several of my free (but not open-source) components, such as the shell extensions (http://shellext.com) and system tools (http://synesis.com.au/systools.html). [Note: the system tools are quite old; a new, and *much* improved batch will be out before the end of the year.]
 Will it
 ever have?
It probably will. But that's quite some time away. Currently, there are several important refinements to go before we get Pantheios 1.0 out the door.
 If I have to 'roll my own', could you provide some guidelines?
I'd be very happy to offer advice, or to help you out, time allowing. For now, I'd say you want to at least build your own front-end, and implement pantheios_fe_isSeverityLogged() in terms of something dynamic.
 Thank you in advance,
 
 				Hrvoje "Shuckey" Bratanic
HTH Cheers Matt
Aug 19 2007