Public Member Functions | Static Public Attributes | List of all members
test_msg.test_msg Class Reference

Public Member Functions

def __init__ (self)
 
def debug (cls, msg='')
 
def info (cls, msg='')
 
def warning (cls, msg='')
 
def error (cls, msg='')
 

Static Public Attributes

int level = 0
 

Detailed Description

Definition at line 2 of file test_msg.py.

Constructor & Destructor Documentation

def test_msg.test_msg.__init__ (   self)

Definition at line 6 of file test_msg.py.

6  def __init__(self):
7  pass
8 
def __init__(self)
Definition: test_msg.py:6

Member Function Documentation

def test_msg.test_msg.debug (   cls,
  msg = '' 
)

Definition at line 10 of file test_msg.py.

10  def debug(cls,msg=''):
11  if int(cls.level)<=0:
12  print '\033[94m[DEBUG] \033[00m',msg
13 
def debug(cls, msg='')
Definition: test_msg.py:10
def test_msg.test_msg.error (   cls,
  msg = '' 
)

Definition at line 25 of file test_msg.py.

25  def error(cls,msg=''):
26  if int(cls.level)<=3:
27  print '\033[91m[ERROR] \033[00m',msg
28 
def error(cls, msg='')
Definition: test_msg.py:25
def test_msg.test_msg.info (   cls,
  msg = '' 
)

Definition at line 15 of file test_msg.py.

15  def info(cls,msg=''):
16  if int(cls.level)<=1:
17  print '\033[92m[INFO] \033[00m',msg
18 
def info(cls, msg='')
Definition: test_msg.py:15
def test_msg.test_msg.warning (   cls,
  msg = '' 
)

Definition at line 20 of file test_msg.py.

20  def warning(cls,msg=''):
21  if int(cls.level)<=2:
22  print '\033[95m[WARNING]\033[00m',msg
23 
def warning(cls, msg='')
Definition: test_msg.py:20

Member Data Documentation

int test_msg.test_msg.level = 0
static

Definition at line 4 of file test_msg.py.


The documentation for this class was generated from the following file: