OLD | NEW |
1 #!/usr/bin/python | |
2 # | |
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 3 # found in the LICENSE file. |
6 | 4 |
7 """ Error and information logging for IDL """ | 5 """ Error and information logging for IDL """ |
8 | 6 |
9 # | 7 # |
10 # IDL Log | 8 # IDL Log |
11 # | 9 # |
12 # And IDLLog object provides a mechanism for capturing logging output | 10 # And IDLLog object provides a mechanism for capturing logging output |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 self.capture = enable | 49 self.capture = enable |
52 | 50 |
53 def DrainLog(self): | 51 def DrainLog(self): |
54 out = self.log | 52 out = self.log |
55 self.log = [] | 53 self.log = [] |
56 return out | 54 return out |
57 | 55 |
58 ErrOut = IDLLog('Error', sys.stderr) | 56 ErrOut = IDLLog('Error', sys.stderr) |
59 WarnOut = IDLLog('Warning', sys.stdout) | 57 WarnOut = IDLLog('Warning', sys.stdout) |
60 InfoOut = IDLLog('', sys.stdout) | 58 InfoOut = IDLLog('', sys.stdout) |
61 | |
OLD | NEW |