本文整理汇总了TypeScript中node-opcua-debug.make_debugLog函数的典型用法代码示例。如果您正苦于以下问题:TypeScript make_debugLog函数的具体用法?TypeScript make_debugLog怎么用?TypeScript make_debugLog使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了make_debugLog函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: make_debugLog
import { checkDebugFlag, make_debugLog } from "node-opcua-debug";
import { ExtensionObject } from "node-opcua-extension-object";
import { EventFilter } from "node-opcua-service-filter";
import { ReadValueId, ReadValueIdOptions } from "node-opcua-service-read";
import {
MonitoredItemCreateResult,
MonitoringMode, MonitoringParameters, MonitoringParametersOptions
} from "node-opcua-service-subscription";
import { StatusCode, StatusCodes } from "node-opcua-status-code";
import { Variant } from "node-opcua-variant";
import { ClientMonitoredItemBase } from "../client_monitored_item_base";
import { ClientSubscription } from "../client_subscription";
import { ClientSubscriptionImpl } from "./client_subscription_impl";
const debugLog = make_debugLog(__filename);
const doDebug = checkDebugFlag(__filename);
export type PrepareForMonitoringResult = { error: string } | {
error?: null;
itemToMonitor: ReadValueIdOptions;
monitoringMode: MonitoringMode;
requestedParameters: MonitoringParameters;
};
export class ClientMonitoredItemBaseImpl extends EventEmitter implements ClientMonitoredItemBase {
public itemToMonitor: ReadValueId;
public monitoringParameters: MonitoringParameters;
public subscription: ClientSubscriptionImpl;
public monitoringMode: MonitoringMode;
开发者ID:node-opcua,项目名称:node-opcua,代码行数:31,代码来源:client_monitored_item_base_impl.ts
示例2: make_debugLog
import { NodeId } from "node-opcua-nodeid";
import { StatusCodes } from "node-opcua-status-code";
import { CallMethodResultOptions } from "node-opcua-types";
import { DataType, Variant, VariantArrayType } from "node-opcua-variant";
import { ByteString, UAString } from "node-opcua-basic-types";
import { CreateSigningRequestResult, PushCertificateManager } from "./push_certificate_manager";
import {
installCertificateExpirationAlarm
} from "./server/install_CertificateAlarm";
import {
PushCertificateManagerServerImpl,
PushCertificateManagerServerOptions
} from "./server/push_certificate_manager_server_impl";
const debugLog = make_debugLog("ServerConfiguration");
const doDebug = checkDebugFlag("ServerConfiguration");
const errorLog = debugLog;
function hasExpectedUserAccess(context: SessionContext) {
if (!context ||
!context.session ||
!context.session.userIdentityToken) {
return false;
}
const currentUserRole = context.getCurrentUserRole();
return !!currentUserRole.match("SecurityAdmin");
}
function hasEncryptedChannel(context: SessionContext) {
// todo
开发者ID:node-opcua,项目名称:node-opcua,代码行数:31,代码来源:push_certificate_manager_helpers.ts
注:本文中的node-opcua-debug.make_debugLog函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论