To prevent accidental outside use, all LogBugger (and BufferAppender) code is in the namespace isc::log::internal now, and the files have been renamed to _impl
libb10_log_la_SOURCES += message_reader.cc message_reader.h
libb10_log_la_SOURCES += message_types.h
libb10_log_la_SOURCES += output_option.cc output_option.h
-libb10_log_la_SOURCES += log_buffer.cc log_buffer.h
+libb10_log_la_SOURCES += log_buffer_impl.cc log_buffer_impl.h
EXTRA_DIST = README
EXTRA_DIST += logimpl_messages.mes
// OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
// PERFORMANCE OF THIS SOFTWARE.
-#include <log/log_buffer.h>
-#include <log4cplus/loglevel.h>
+#include <log/log_buffer_impl.h>
+#include <log4cplus/loglevel.h>
#include <boost/scoped_ptr.hpp>
#include <iostream>
namespace isc {
namespace log {
+namespace internal {
LogBuffer& getLogBuffer() {
static boost::scoped_ptr<LogBuffer> log_buffer(NULL);
buffer_.add(event);
}
+} // end namespace internal
} // end namespace log
} // end namespace isc
namespace isc {
namespace log {
+namespace internal {
/// \brief Buffer add after flush
///
/// \brief Getter for the singleton instance of the log buffer
LogBuffer& getLogBuffer();
+} // end namespace internal
} // end namespace log
} // end namespace isc
#include <log/log_messages.h>
#include <log/logger_name.h>
#include <log/logger_specification.h>
-#include <log/log_buffer.h>
+#include <log/log_buffer_impl.h>
using namespace std;
// Flush the LogBuffer at the end of processing a new specification
void
LoggerManagerImpl::processEnd() {
- getLogBuffer().flush();
+ internal::getLogBuffer().flush();
}
// Process logging specification. Set up the common states then dispatch to
void
LoggerManagerImpl::createBufferAppender(log4cplus::Logger& logger) {
- log4cplus::SharedAppenderPtr bufferapp(new BufferAppender(getLogBuffer()));
+ log4cplus::SharedAppenderPtr bufferapp(
+ new internal::BufferAppender(internal::getLogBuffer()));
bufferapp->setName("buffer");
logger.addAppender(bufferapp);
// Since we do not know at what level the loggers will end up
#include <log/macros.h>
#include <log/logger_support.h>
#include <log/log_messages.h>
-#include <log/log_buffer.h>
+#include <log/log_buffer_impl.h>
#include <log4cplus/loggingmacros.h>
#include <log4cplus/logger.h>
#include <log4cplus/spi/loggingevent.h>
using namespace isc::log;
+using namespace isc::log::internal;
namespace isc {
namespace log {