]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/tools/build/src/util/logger.py
1 # Copyright Pedro Ferreira 2005. Distributed under the Boost
2 # Software License, Version 1.0. (See accompanying
3 # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
11 def log (self
, source_name
, *args
):
12 if self
.on () and self
.interesting (source_name
):
13 self
.do_log (self
.indent_
)
18 def increase_indent (self
):
22 def decrease_indent (self
):
23 if self
.on () and len (self
.indent_
) > 4:
24 self
.indent_
= self
.indent_
[-4:]
26 def do_log (self
, *args
):
29 def interesting (self
, source_name
):
35 class TextLogger (NullLogger
):
37 NullLogger
.__init
__ (self
)
39 def do_log (self
, arg
):
40 sys
.stdout
.write (str (arg
))
42 def interesting (self
, source_name
):