LCOV - code coverage report
Current view: top level - src/utility - mqtt_client_logger.dart (source / functions) Hit Total Coverage
Test: coverage.lcov Lines: 2 2 100.0 %
Date: 2017-10-09 Functions: 0 0 -

          Line data    Source code
       1             : /*
       2             :  * Package : mqtt_client
       3             :  * Author : S. Hamblett <steve.hamblett@linux.com>
       4             :  * Date   : 28/06/2017
       5             :  * Copyright :  S.Hamblett
       6             :  */
       7             : 
       8             : part of mqtt_client;
       9             : 
      10             : /// Library wide logging class
      11             : class MqttLogger {
      12             :   /// Log or not
      13             :   static bool loggingOn = false;
      14             : 
      15             :   /// Log method
      16             :   static void log(String message) {
      17             :     if (loggingOn) {
      18           1 :       final DateTime now = new DateTime.now();
      19           2 :       print("$now -- $message");
      20             :     }
      21             :   }
      22             : }

Generated by: LCOV version 1.10