reportlab/lib/logger.py
changeset 494 54257447cfe9
parent 407 8c089804207e
child 811 92db8fedcd77
equal deleted inserted replaced
493:89dbc0b19ede 494:54257447cfe9
     1 #!/bin/env python
     1 #!/bin/env python
     2 ###############################################################################
     2 #copyright ReportLab Inc. 2000
     3 #
     3 #see license.txt for license details
     4 #	ReportLab Public License Version 1.0
     4 #history http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/reportlab/lib/logger.py?cvsroot=reportlab
     5 #
     5 #$Header: /tmp/reportlab/reportlab/lib/logger.py,v 1.2 2000/10/25 08:57:45 rgbecker Exp $
     6 #   Except for the change of names the spirit and intention of this
     6 __version__=''' $Id: logger.py,v 1.2 2000/10/25 08:57:45 rgbecker Exp $ '''
     7 #   license is the same as that of Python
       
     8 #
       
     9 #	(C) Copyright ReportLab Inc. 1998-2000.
       
    10 #
       
    11 #
       
    12 # All Rights Reserved
       
    13 #
       
    14 # Permission to use, copy, modify, and distribute this software and its
       
    15 # documentation for any purpose and without fee is hereby granted, provided
       
    16 # that the above copyright notice appear in all copies and that both that
       
    17 # copyright notice and this permission notice appear in supporting
       
    18 # documentation, and that the name of ReportLab not be used
       
    19 # in advertising or publicity pertaining to distribution of the software
       
    20 # without specific, written prior permission. 
       
    21 # 
       
    22 #
       
    23 # Disclaimer
       
    24 #
       
    25 # ReportLab Inc. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
       
    26 # SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
       
    27 # IN NO EVENT SHALL ReportLab BE LIABLE FOR ANY SPECIAL, INDIRECT
       
    28 # OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
       
    29 # OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
       
    30 # OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
       
    31 # PERFORMANCE OF THIS SOFTWARE. 
       
    32 #
       
    33 ###############################################################################
       
    34 #	$Log: logger.py,v $
       
    35 #	Revision 1.1  2000/07/26 11:58:31  rgbecker
       
    36 #	Initial version
       
    37 #
       
    38 __version__=''' $Id: logger.py,v 1.1 2000/07/26 11:58:31 rgbecker Exp $ '''
       
    39 
     7 
    40 from sys import stderr
     8 from sys import stderr
    41 class Logger:
     9 class Logger:
    42 	'''
    10 	'''
    43 	An extended file type thing initially equivalent to sys.stderr
    11 	An extended file type thing initially equivalent to sys.stderr