
#include <emscripten/bind.h>

#include "libcellml/logger.h"

using namespace emscripten;


EMSCRIPTEN_BINDINGS(libcellml_logger) {

    class_<libcellml::Logger>("Logger")
        .function("addIssue", &libcellml::Logger::addIssue)
        .function("removeAllIssues", &libcellml::Logger::removeAllIssues)
        .function("error", &libcellml::Logger::error)
        .function("warning", &libcellml::Logger::warning)
        .function("hint", &libcellml::Logger::hint)
        .function("issueCount", &libcellml::Logger::issueCount)
        .function("errorCount", &libcellml::Logger::errorCount)
        .function("warningCount", &libcellml::Logger::warningCount)
        .function("hintCount", &libcellml::Logger::hintCount)
    ;
}


#include <emscripten/bind.h>

#include "libcellml/logger.h"

using namespace emscripten;


EMSCRIPTEN_BINDINGS(libcellml_logger) {

    class_<libcellml::Logger>("Logger")
        .function("addIssue", &libcellml::Logger::addIssue)
        .function("removeAllIssues", &libcellml::Logger::removeAllIssues)
        .function("error", &libcellml::Logger::error)
        .function("warning", &libcellml::Logger::warning)
        .function("hint", &libcellml::Logger::hint)
    ;
}

--- 
+++ 
@@ -14,5 +14,9 @@
         .function("error", &libcellml::Logger::error)
         .function("warning", &libcellml::Logger::warning)
         .function("hint", &libcellml::Logger::hint)
+        .function("issueCount", &libcellml::Logger::issueCount)
+        .function("errorCount", &libcellml::Logger::errorCount)
+        .function("warningCount", &libcellml::Logger::warningCount)
+        .function("hintCount", &libcellml::Logger::hintCount)
     ;
 }
Add missing API from Javascript bindings Logger class.
