LCOV - code coverage report
Current view: top level - src - Logging.cc (source / functions) Hit Total Coverage
Test: coverage.info.cleaned Lines: 8 8 100.0 %
Date: 2016-06-29 12:30:40 Functions: 3 3 100.0 %

          Line data    Source code
       1             : #include <dash/internal/Logging.h>
       2             : 
       3             : #include <dash/internal/Macro.h>
       4             : #include <dash/internal/StreamConversion.h>
       5             : 
       6             : #include <array>
       7             : #include <vector>
       8             : #include <string>
       9             : #include <sstream>
      10             : #include <iostream>
      11             : #include <iomanip>
      12             : #include <cstring>
      13             : 
      14             : #include <unistd.h>
      15             : 
      16             : 
      17             : namespace dash {
      18             : namespace internal {
      19             : namespace logging {
      20             : 
      21             : bool _log_enabled = true;
      22             : 
      23           4 : void Log_Recursive(
      24             :   const char* level,
      25             :   const char* file,
      26             :   int line,
      27             :   const char* context_tag,
      28             :   std::ostringstream & msg)
      29             : {
      30           8 :   std::istringstream ss(msg.str());
      31           8 :   std::string item;
      32          12 :   while (std::getline(ss, item)) {
      33           4 :     Log_Line(level, file, line, context_tag, item);
      34             :   }
      35           4 :   (DASH_LOG_OUTPUT_TARGET).flush();
      36           4 : }
      37             : 
      38             : } // namespace logging
      39             : } // namespace internal
      40          12 : } // namespace dash

Generated by: LCOV version 1.12