Skip to content

Commit aa37411

Browse files
committed
增加readme
1 parent d686662 commit aa37411

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22

33
通过调用syslog发送系统日志
44

5-
##安装
5+
## 安装
66
```bash
77
$ npm install syslog-node
88
```
9-
##API
9+
## API
1010
Syslog.syslog(ident, option, facility, priority, format`)
1111

12-
##参数
12+
## 参数
1313
* @param {string} ident - idents指向的字符串可以是想要打出的任意字符,它所表示的字符串将固定地加在每行日志的前面以标识这个日志,该标志通常设置为程序的名称
1414
* @param {number} option - option参数所指定的标志用来控制openlog()操作和syslog()的后续调用
1515
* @param {number} facility - facility参数是用来指定记录消息程序的类型。
1616
* @param {number} priority - 指定日志等级。
1717
* @param {string} format - 日志的内容。
1818

19-
##使用
19+
## 使用
2020
```js
2121
let Syslog = require('syslog-node')
2222
Syslog.syslog('xx-xx', Syslog.option.LOG_PID, Syslog.facility.LOG_USER, Syslog.priority.LOG_NOTICE, 'log message')

0 commit comments

Comments
 (0)