Implementing an orthogonal log level that gets dumped into a socket
问题 I'm using boost log and want to implement an extra log level that is independent of the existing log levels. This log level will be activated on-demand, if there is a listening client connected to the daemons socket (independent of the current configured log level). Is this possible to implement? I suspect that the on-demand functionality can be implemented through a custom sink that will either discard, or send the data. But how do I integrate this with the rest of the logging code? 回答1: Let