## LOG
###接口说明
>向控制台输入一段文字并记录到日志文件中
>
+++
put:LOG
var:log_type=日志类型#
var:str=字符串或者数字#
<<<
success
无返回结果
+++
###代码演示
~~~
var LOG_WARNING = 5; //警告,并不是重要数据消息
var LOG_INFO = 4; //普通,做为说明作用。
var LOG_DEBUG = 3; //调试,为了测试数值用。
var LOG_ERROR = 2; //错误,有数据发生错误
var LOG_ALWAYS = 1; //严重错误,影响到整个程序的错误。慎用。
var LOG_NOTING = 0; //空输出
LOG(LOG_ALWAYS,"出现了严重的错误,请及时修复.");
~~~
- base函数库
- md5
- sha1
- LOG
- jsonencode
- jsondecode
- postMsgToThread
- base64_encode
- base64_decode
- urlencode
- urldecode
- U2G
- G2U
- parseurl
- parseurlparam
- HttpServer
- init
- handleFunc
- setPort
- setMaxSocketCount
- send
- startService
- stopService
- redirect
- getaddress_ipv4
- Server
- init
- startService
- stopService
- setPort
- setMaxSocketCount
- bind
- send
- setUseHead
- setMaxPacketCount
- closesocket
- Client
- init
- connect
- send
- bind
- closesocket
- Thread
- setScriptFile
- setScriptParam
- startThread
- stopThread
- getThreadID
- Mysql
- connect
- execute
- setSPName
- executeCommand
- addParamter
- queryRecord
- getRecordCount
- HttpHelper
- doGet
- doPost
- addHeader
- getHeaderData
- setProxy
- setCookie
- EmailHelper
- config
- addText
- addTitle
- addFile
- send
- Downloader
- setUrl
- setFilePath
- download
- close