update readme

This commit is contained in:
funshine 2014-11-07 15:15:50 +08:00
parent 0702738572
commit bce598318e
1 changed files with 16 additions and 16 deletions

View File

@ -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()