本文整理汇总了TypeScript中node-opcua-debug.make_errorLog函数的典型用法代码示例。如果您正苦于以下问题:TypeScript make_errorLog函数的具体用法?TypeScript make_errorLog怎么用?TypeScript make_errorLog使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了make_errorLog函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: require
import {
CreateSecureChannelCallbackFunc, FindEndpointCallback,
FindEndpointOptions,
FindEndpointResult, FindServersOnNetworkRequestLike, FindServersRequestLike,
GetEndpointsOptions,
OPCUAClientBase,
OPCUAClientBaseOptions
} from "../client_base";
import { ClientSessionImpl } from "./client_session_impl";
// tslint:disable-next-line:no-var-requires
const once = require("once");
const debugLog = make_debugLog(__filename);
const errorLog = make_errorLog(__filename);
const doDebug = checkDebugFlag(__filename);
const defaultConnectionStrategy: ConnectionStrategyOptions = {
initialDelay: 1000,
maxDelay: 20 * 1000, // 20 seconds
maxRetry: -1, // infinite
randomisationFactor: 0.1
};
const warningLog = debugLog;
function __findEndpoint(
masterClient: OPCUAClientBase,
endpointUrl: string,
params: FindEndpointOptions,
示例2: make_errorLog
/**
* @module node-opcua-transport
*/
import { EventEmitter } from "events";
import { assert } from "node-opcua-assert";
import { BinaryStream } from "node-opcua-binary-stream";
import { createFastUninitializedBuffer } from "node-opcua-buffer-utils";
import { readMessageHeader, SequenceHeader } from "node-opcua-chunkmanager";
import { make_errorLog } from "node-opcua-debug";
import { PacketAssembler, PacketInfo } from "node-opcua-packet-assembler";
import { get_clock_tick } from "node-opcua-utils";
const doPerfMonitoring = false;
const errorLog = make_errorLog("MessageBuilder");
export function readRawMessageHeader(data: Buffer): PacketInfo {
const messageHeader = readMessageHeader(new BinaryStream(data));
return {
extra: "",
length: messageHeader.length,
messageHeader
};
}
/**
* @class MessageBuilderBase
* @extends EventEmitter
* @uses PacketAssembler
* @constructor
示例3: make_debugLog
import {
checkDebugFlag,
make_debugLog,
make_errorLog
} from "node-opcua-debug";
import {
NodeId
} from "node-opcua-nodeid";
import {
AddObjectOptions,
AddressSpace,
UACertificateExpirationAlarm
} from "node-opcua-address-space";
const debugLog = make_debugLog("ServerConfiguration");
const errorLog = make_errorLog("ServerConfiguration");
const doDebug = checkDebugFlag("ServerConfiguration");
export function installCertificateExpirationAlarm(addressSpace: AddressSpace) {
debugLog("installCertificateExpirationAlarm");
const server = addressSpace.rootFolder.objects.server;
const namespace = addressSpace.getOwnNamespace();
const certificateExpirationAlarmType = addressSpace.findEventType("CertificateExpirationAlarmType");
const options = {
browseName: "ServerCertificateAlarm",
conditionSource: null,