diff --git a/hoot-js/src/main/cpp/hoot/js/util/LogJs.cpp b/hoot-js/src/main/cpp/hoot/js/util/LogJs.cpp
index a11e952..f95160b 100644
--- a/hoot-js/src/main/cpp/hoot/js/util/LogJs.cpp
+++ b/hoot-js/src/main/cpp/hoot/js/util/LogJs.cpp
@@ -214,7 +214,7 @@ void LogJs::setLogLevel(const FunctionCallbackInfo<Value>& args)
try
{
QString logLevel = toCpp<QString>(args[0]);
- Log::getInstance().setLevel(Log::getLevelFromString(logLevel));
+ Log::getInstance().setLevel(Log::levelFromString(logLevel));
args.GetReturnValue().SetUndefined();
}