|
of_setlogseverity
|
|
Full name
|
pfc_n_cst_error.of_setlogseverity
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setlogseverity(integer)
|
public function integer of_setlogseverity (integer ai_severity);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetLogSeverity
//
// Access: public
//
// Arguments:
// ai_severity Severity Log level.
//
// Returns: Integer.
// 1 if it succeeds and -1 if it fails.
//
// Description: This is the threshold to determine if the error
// will be logged. For pre-defined errors, each error has a
// severity assigned to it. With this function, you can log
// errors with any severity level. For example, if the
// severity level is set to 5, all errors with a severity
// level of 5 or greater will be logged.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// Copyright © 1996-1997 Sybase, Inc. and its subsidiaries. All rights reserved.
// Any distribution of the PowerBuilder Foundation Classes (PFC)
// source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////
// Check argument.
If IsNull(ai_severity) Then
Return -1
End If
ii_logseverity = ai_severity
Return 1
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|