#! /usr/bin/env python
# -*- coding: utf-8 -*-

__author__ = 'maxim'


LOG_LEVEL = 1

def log(*msg):
  import datetime
  print '[%s]' % datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'), ' '.join([str(it) for it in msg])

def set_silence():
  global LOG_LEVEL
  LOG_LEVEL = 10

def set_verbose(level=1):
  global LOG_LEVEL
  LOG_LEVEL = -level

def is_info_logged():
  return LOG_LEVEL >= 1

def debug(*msg):
  log_at_level(0, *msg)

def info(*msg):
  log_at_level(1, *msg)

def warn(*msg):
  log_at_level(2, *msg)

def vlog(*msg):
  log_at_level(-1, *msg)

def vlog2(*msg):
  log_at_level(-2, *msg)

def vlog3(*msg):
  log_at_level(-3, *msg)

def log_at_level(level, *msg):
  if level >= LOG_LEVEL:
    log(*msg)

@@ -41,16 +41,54 @@
 -8 -*-%0A%0A
+from __future__ import print_function%0A
 __author
@@ -157,17 +157,17 @@
 %0A  print
- 
+(
 '%5B%25s%5D' %25
@@ -255,16 +255,17 @@
 in msg%5D)
+)
 %0A%0Adef se

python-3.x print