Bottlenecks frame support log information 01/26701/5
authorliyin <liyin11@huawei.com>
Thu, 5 Jan 2017 07:49:19 +0000 (15:49 +0800)
committerAce Lee <liyin11@huawei.com>
Mon, 9 Jan 2017 09:02:33 +0000 (09:02 +0000)
commit448224a5cda465a52c9f1d5fea71a2e3e5c4411e
tree9011896a24c7d79c4f1a570916e0cabb504adb35
parent5c859330549de91739b7c2ef31c040a208bb6840
Bottlenecks frame support log information

JIRA: BOTTLENECK-122

This code is for Bottlenecks to have a common way
to export log information
the way to use it is:
xxx = Logger.(__name__).getLogger()
xxx.info('xxxxxx')
It will only out info if you don't set DEBUG=true.
the default log file located '/tmp/bottlenecks.log'
we will add configuring log file  function when config funtion complate.

Change-Id: I11cdc8a27f657736c3ec0e0bc1195f0ce0a2fce4
Signed-off-by: liyin <liyin11@huawei.com>
utils/logger.py [new file with mode: 0644]