| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # 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 |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """ Error and information logging for IDL """ | 5 """ Error and information logging for IDL """ |
| 6 | 6 |
| 7 # | 7 # |
| 8 # IDL Log | 8 # IDL Log |
| 9 # | 9 # |
| 10 # And IDLLog object provides a mechanism for capturing logging output | 10 # And IDLLog object provides a mechanism for capturing logging output |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 self.capture = enable | 50 self.capture = enable |
| 51 | 51 |
| 52 def DrainLog(self): | 52 def DrainLog(self): |
| 53 out = self.log | 53 out = self.log |
| 54 self.log = [] | 54 self.log = [] |
| 55 return out | 55 return out |
| 56 | 56 |
| 57 ErrOut = IDLLog('Error', sys.stderr) | 57 ErrOut = IDLLog('Error', sys.stderr) |
| 58 WarnOut = IDLLog('Warning', sys.stdout) | 58 WarnOut = IDLLog('Warning', sys.stdout) |
| 59 InfoOut = IDLLog('', sys.stdout) | 59 InfoOut = IDLLog('', sys.stdout) |
| OLD | NEW |