当前位置:网站首页>Chapter 10 setting up structured logging (2)
Chapter 10 setting up structured logging (2)
2022-06-26 13:17:00 【yaoxin521123】
List of articles
Chapter ten Set up structured logging ( Two )
notes :IRIS Yes ,Cache nothing .
Enable structured logging
^LOGDMN Routines allow you to manage structured logging ; There is also a class based API, It will be introduced in the next section .
To use ^LOGDMN Enable structured logging :
- Open the terminal and enter the following command :
set $namespace="%sys"
do ^LOGDMN
This will start a routine with the following prompts :
1) Enable logging
2) Disable logging
3) Display configuration
4) Edit configuration
5) Set default configuration
6) Display logging status
7) Start logging
8) Stop logging
9) Restart logging
LOGDMN option?
- Press
4So that you can specify the configuration details . then , The routine prompts for the following items :
a. Minimum log level , One of the following :
-2— Detailed debug messages ( For example, hexadecimal dump ).-1— Less detailed debug messages .0— Informational messages , Including all audit events .1( The default value is )— Warning , Indicates a problem that may require attention but does not interrupt the operation .2— Serious mistakes , Indicates that the problem has interrupted the operation .3— Fatal error , Indicates that the system cannot run due to the problem .
b. Pipeline command , It specifies where the system sends structured logs . Enter a response in the following form :
irislogd -f c:/myfilename.log
But will c:/myfilename.log Replace with the fully qualified pathname of the target log file . In this order ,irislogd yes The name of the executable , It will receive the log data and write it to the specified file ( adopt -f Options ).
For pipeline commands , The simplest choice is to use the executable file mentioned here (irislogd.exe), But it can be replaced with a different goal .
c. The format of the data sent to the pipeline . Appoint NVP( Default ) or JSON. Options NVP Sent by name - Data composed of value pairs , Space off . Options JSON stay JSON Send data in output .
d. The interval between successive calls to pipeline commands ( In seconds ). The default value is 10 second .
When the routine displays the main prompt again (LOGDMN Options ?), Press 1 Enable logging .
Press 7 Start recording .




Class based for structured logging API
To manage structured logging , have access to %SYS In namespace SYS.LogDmn class , Instead of using ^LOGDMN routine .
irislogd Other options for
Argument | Purpose |
|---|---|
-d | Send diagnostic and error messages |
-e | errfilename Write error and diagnostic messages to the given file . |
-f | logfilename Write log messages to the given file . |
-h | hostname Include the given hostname in the structured log file . |
-i | irisinstance Include the given instance name in the structured log file . |
-s | Write log messages to Unix syslog Tools ( Limited to Unix) |
Besides , You can write output to standard output . To be in Unix On the implementation , Please also omit -f and -s Parameters . To be in Windows Do this on , Please omit -s Parameters .
边栏推荐
- Coprime and non coprime of template problems of Chinese remainder theorem
- C - Common Subsequence
- Beifu cx5130 card replacement and transfer of existing authorization files
- 倍福Ethercat模块网络诊断和硬件排查的基本方法
- 橋接模式(Bridge)
- MySQL数据库讲解(五)
- Power Designer - Custom Comment button
- UVA10341 solve it 二分
- Do you know the limitations of automated testing?
- D - skiing
猜你喜欢

Beifu PLC obtains system time, local time, current time zone and system time zone conversion through program

倍福CX5130换卡对已有的授权文件转移操作

Fire warning is completed within 10 seconds, and Baidu AI Cloud helps Kunming Guandu build a new benchmark of smart city

倍福PLC基于NT_Shutdown实现控制器自动关机重启

8、【STM32】定时器(TIM)——中断、PWM、输入捕获实验(一文精通定时器)

To solve the difficulties of small and medium-sized enterprises, Baidu AI Cloud makes an example

Don't mess with full_ Case and parallel_ CASE

适配器模式(Adapter)

Opencv high speed download

Dark horse notes - Common APIs
随机推荐
Arcpy - - utilisation de la fonction insertlayer (): ajout de calques dans un document de carte
HDU1724[辛普森公式求积分]Ellipse
8、【STM32】定时器(TIM)——中断、PWM、输入捕获实验(一文精通定时器)
HDU 3555 Bomb
桥接模式(Bridge)
IDC report: the AI cloud market share of Baidu AI Cloud ranks first for six consecutive times
Arcpy——InsertLayer()函數的使用:摻入圖層到地圖文檔裏
倍福NC轴状态转移图解析
Power Designer - Custom Comment button
SQL assigns the field value of data table B to a column in data table a
PostGIS calculation angle
HDU 3709 Balanced Number
倍福PLC通过程序获取系统时间、本地时间、当前时区以及系统时间时区转换
利用scrapy爬取句子迷网站优美句子存储到本地(喜欢摘抄的人有福了!)
Processsing function random
首批通过!百度智能云曦灵平台获信通院数字人能力评测权威认证
mysql讲解(一)
mariadb学习笔记
F - Charm Bracelet
J - Wooden Sticks poj 1065