op_prg_log_handle_severity_set()

Abstract

Sets the severity type for log entries written to a given log handle.

Syntax

op_prg_log_handle_severity_set (handle_ptr, severity)
Argument Type Description
handle_ptr Log_Handle * Log handle identifying the simulation log category of interest.
severity “PrgT_Log_Severity_Type“ Severity type to be set for log entries written to the log handle; one of the symbolic values listed in Table 2 on page 80.

Return Type

Compcode

OPC_COMPCODE_FAILURE if handle_ptr is invalid or severity is nil; OPC_COMPCODE_SUCCESS otherwise.

Example

PrgT_Log_Severity_Type   severity;
Compcode                        status;

/* Configuration related notification handles. */
conf_log_handle = op_prg_log_handle_create (OpC_Log_Category_Configuration, "ATM", "Setup", atm_conf_log_limit);

status = op_prg_log_handle_severity_get (conf_log_handle, &severity);
if ((status != OPC_COMPCODE_FAILURE) && (severity != PrgC_Log_Severity_Warning))
   op_prg_log_handle_severity_set (&conf_log_handle, PrgC_Log_Severity_Warning);

Details

None.

Purpose

Provides a way to set the severity type for future log entries written to a given log handle.

Errors

  • Recoverable Error: Invalid log handle.
  • Recoverable Error: Specified severity (<severity>) is not a valid value.

Reference

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com