update readme
This commit is contained in:
parent
0702738572
commit
bce598318e
32
README.md
32
README.md
|
@ -226,22 +226,22 @@ null
|
||||||
```
|
```
|
||||||
//record log to init.lua. Call the file after system restart.
|
//record log to init.lua. Call the file after system restart.
|
||||||
log.format()
|
log.format()
|
||||||
log.startlog(“init.lua”, 1)
|
log.start(“init.lua”, 1)
|
||||||
print(“hello world”)
|
print(“hello world”)
|
||||||
log.stoplog()
|
log.stop()
|
||||||
```
|
```
|
||||||
|
|
||||||
####See also
|
####See also
|
||||||
**-** [log.startlog()](#lg_startlog)<br />
|
**-** [log.start()](#lg_start)<br />
|
||||||
**-** [log.stoplog()](#lg_stoplog)
|
**-** [log.stop()](#lg_stop)
|
||||||
|
|
||||||
<a id="lg_startlog"></a>
|
<a id="lg_start"></a>
|
||||||
## log.startlog()
|
## log.start()
|
||||||
####Description
|
####Description
|
||||||
start to log input
|
start to log input
|
||||||
|
|
||||||
####Syntax
|
####Syntax
|
||||||
log.startlog(filename, noparse)
|
log.start(filename, noparse)
|
||||||
|
|
||||||
####Parameters
|
####Parameters
|
||||||
|
|
||||||
|
@ -256,23 +256,23 @@ null
|
||||||
```
|
```
|
||||||
//record log to init.lua. Call the file after system restart.
|
//record log to init.lua. Call the file after system restart.
|
||||||
log.format()
|
log.format()
|
||||||
log.startlog(“init.lua”, 1)
|
log.start(“init.lua”, 1)
|
||||||
print(“hello world”)
|
print(“hello world”)
|
||||||
log.stoplog()
|
log.stop()
|
||||||
//At this point, the content of init.lua is “print(“hello world”)”. When system restart, print(“hello world”) are excuted.
|
//At this point, the content of init.lua is “print(“hello world”)”. When system restart, print(“hello world”) are excuted.
|
||||||
```
|
```
|
||||||
|
|
||||||
####See also
|
####See also
|
||||||
**-** [log.format()](#lg_format)<br />
|
**-** [log.format()](#lg_format)<br />
|
||||||
**-** [log.stoplog()](#lg_stoplog)
|
**-** [log.stop()](#lg_stop)
|
||||||
|
|
||||||
<a id="lg_stoplog"></a>
|
<a id="lg_stop"></a>
|
||||||
## log.stoplog()
|
## log.stop()
|
||||||
####Description
|
####Description
|
||||||
stop log.
|
stop log.
|
||||||
|
|
||||||
####Syntax
|
####Syntax
|
||||||
log.stoplog()
|
log.stop()
|
||||||
|
|
||||||
####Parameters
|
####Parameters
|
||||||
null
|
null
|
||||||
|
@ -285,15 +285,15 @@ null
|
||||||
```
|
```
|
||||||
//record log to init.lua. Call the file after system restart.
|
//record log to init.lua. Call the file after system restart.
|
||||||
log.format()
|
log.format()
|
||||||
log.startlog(“init.lua”, 1)
|
log.start(“init.lua”, 1)
|
||||||
print(“hello world”)
|
print(“hello world”)
|
||||||
log.stoplog()
|
log.stop()
|
||||||
//At this point, the content of init.lua is “print(“hello world”)”. When system restart, print(“hello world”) are excuted.
|
//At this point, the content of init.lua is “print(“hello world”)”. When system restart, print(“hello world”) are excuted.
|
||||||
```
|
```
|
||||||
|
|
||||||
####See also
|
####See also
|
||||||
**-** [log.format()](#lg_format)<br />
|
**-** [log.format()](#lg_format)<br />
|
||||||
**-** [log.startlog()](#lg_startlog)
|
**-** [log.start()](#lg_start)
|
||||||
|
|
||||||
<a id="lg_open"></a>
|
<a id="lg_open"></a>
|
||||||
## log.open()
|
## log.open()
|
||||||
|
|
Loading…
Reference in New Issue