/**
* Callback to send a message through to the core
*
* @param msgType Message type (debug, warning, etc.)
* @param file File where message was generated (__FILE__)
* @param line Line where message was generated (__LINE__)
* @param message Message in human readable format
* @throws nscapi::nscapi_exception When core pointer set is unavailable.
*/
void nscapi::core_wrapper::log(std::string message) const {
	if (!fNSAPIMessage) {
		return;
	}
	try {
		return fNSAPIMessage(message.c_str(), message.size());
	} catch (...) {
	}
}
Beispiel #2
0
/**
* Callback to send a message through to the core
*
* @param msgType Message type (debug, warning, etc.)
* @param file File where message was generated (__FILE__)
* @param line Line where message was generated (__LINE__)
* @param message Message in human readable format
*/
void nscapi::core_wrapper::log(std::string message) const {
	if (!fNSAPIMessage) {
		return;
	}
	try {
		return fNSAPIMessage(message.c_str(), static_cast<unsigned int>(message.size()));
	} catch (...) {
	}
}