SFLOG_SETLEVEL

int __stdcall SFLOG_SETLEVEL ( int  nLevel )

Set the new logging level.

Returns
status code of the operation
Return values
NDK_SUCCESS  Operation successful
NDK_FAILED  Operation unsuccessful. See Macros for full list.
Parameters
[in] nLevel  new logging level
Remarks
  • This function can dynamically override the logging level settings in the configuration file throughout the life of your application.
  • The new value (logging level) is not persistent (i.e. is not saved into the configuration file).
Requirements
Header SFLogger.H
Library SFLOG.LIB
DLL SFLOG.DLL
Examples
#include "SFLOgger.h"
#include "SFMacros.h"

.....
int nLevel=SFLOG_OFF;
nRet = SFLOG_SETLEVEL(nLevel);

.....

   
Namespace:  NumXLAPI
Class:  SLOG
Scope:  Public
Lifetime:  Static
NDK_RETCODE SETLEVEL ( SFLOG_LEVEL  nLevel, )

Set the new logging level.

Return Value

a value from NDK_RETCODE enumeration for the status of the call. 

NDK_SUCCESS  operation successful
Error  Error Code
Parameters
[in] nLevel  new logging level
Remarks
  • This function can dynamically override the logging level settings in the configuration file throughout the life of your application.
  • The new value (logging level) is not persistent (i.e. is not saved into the configuration file).
Exceptions
Exception Type Condition
None N/A
Requirements
Namespace NumXLAPI
Class SFLOG
Scope Public
Lifetime Static
Package NumXLAPI.DLL
Examples

NDK_RETCODE nRet = SFLOG.SETLEVEL(SFLOG_LEVEL.SFLOG_OFF);
if( nRet < NDK_RETCODE.NDK_SUCCESS){
	// LOG Error Message (LogMessage is defined in LogMsg reference page)
   LogMessage( SFLOG_LEVEL.SFLOG_ERROR, "SETLEVEL failed");
   
   ...
}
   
References
* Hamilton, J .D.; Time Series Analysis , Princeton University Press (1994), ISBN 0-691-04289-6
* Tsay, Ruey S.; Analysis of Financial Time Series John Wiley & SONS. (2005), ISBN 0-471-690740
* D. S.G. Pollock; Handbook of Time Series Analysis, Signal Processing, and Dynamics; Academic Press; Har/Cdr edition(Nov 17, 1999), ISBN: 125609906
* Box, Jenkins and Reisel; Time Series Analysis: Forecasting and Control; John Wiley & SONS.; 4th edition(Jun 30, 2008), ISBN: 470272848