()
| 32 | } |
| 33 | |
| 34 | public get error() { |
| 35 | if (!this.debug) { |
| 36 | return (...any) => {}; |
| 37 | } |
| 38 | const boundLogFn: (...any) => void = console.error.bind( |
| 39 | console, |
| 40 | this.getLogString() |
| 41 | ); |
| 42 | return boundLogFn; |
| 43 | } |
| 44 | |
| 45 | setEnabled(logging: boolean) { |
| 46 | this.debug = logging; |
no test coverage detected