book
Article ID: KB0090125
calendar_today
Updated On:
Description
Resolution:
The GridServer C++ API provides a logger in UtilFactory::log that has levels similar to those of the Java APIs (and in the Administration Tool and Engine Configurations) but with different level names. The following table provides a mapping of dsdriver::ELogLevel enum constants to Java API, Administration Tool, and EngineConfiguration log levels:
Severe Warning Info Config Fine Finer Finest
eError X X X X X X X
eWarning X X X X X X
eCUSTOMER X X X X X
eJOB X X X X X
ePROD X X X X X
eWORKER X X X X X
eDEVELOP X X X
eSTATS X X
eDEBUG X
Notes:
• There is no difference where the logging C++ code is executed; log levels work exactly the same way in the Engine code and in the client code.
• In order for the C++ logging to work, the following conditions must be met:
o DSDriverVCxx.lib and DSUtilVCxx.lib have to be of the same version everywhere in your environment, especially in your build environment and where the Engine runs (gridLib or deployed DLLs). xx stands for the version of Visual Studio (for example, with VS2003(7.1) it is DSDriverVC71.lib and DSUtilVC71.lib). If both 6.0 and 7.1 versions are visible to the Engine then it will load the earlier version.
o You have to build the Engine binary in release mode.