hwj35
10 天以前 aa0f971ae9a59f0fd98d57b6c1d1663a270be92c
1
2
3
4
5
6
7
8
6m[c@s]ddlZddlmZddlZeejd„Zd„ZedkrYeƒndS(iÿÿÿÿN(t    localtimec Cs×tƒ}d}|d||j|j|jf}tjj|ƒsTtj|ƒntj    d|ddddd|d    d
ƒ|rÓtj
ƒ}|j tj ƒtj dƒ}|j|ƒtjd ƒj|ƒndS( NsD:\ServerLog\WebBottles\%s-%d-%d-%d.logtleveltformats?%(name)-12s %(asctime)s %(name)-12s %(levelname)-8s %(message)stdatefmts%Y-%m-%dT%H:%M:%Stfilenametfilemodesa+t(Rttm_yearttm_monttm_mdaytostpathtexiststmakedirstloggingt basicConfigt StreamHandlertsetLeveltDEBUGt    Formattert setFormattert    getLoggert
addHandler(tLogNamet
addConsuletLEVtnowtfilePathtfileNametconsolet    formatter((s&.\\ServerPython\webbottle\lib\mylog.pyt    InitMyLog s     #  cCsmtdƒtjdƒtjdƒ}tjdƒ}|jdƒ|jdƒ|jdƒ|jdƒdS(    Nttsts&Jackdaws love my big sphinx of quartz.s myapp.area1s myapp.area2s$Quick zephyrs blow, vexing daft Jim.s$How quickly daft jumping zebras vex.s,Jail zesty vixen who grabbed pay from quack.s%The five boxing wizards jump quickly.(RRtinfoRtdebugtwarningterror(tlogger1tlogger2((s&.\\ServerPython\webbottle\lib\mylog.pyttest$s
    t__main__(    RttimeRR
tFalsetINFORR't__name__(((s&.\\ServerPython\webbottle\lib\mylog.pyt<module>s