(message?: any, extra?: Record<string, any>)
| 136 | } |
| 137 | }, |
| 138 | error(message?: any, extra?: Record<string, any>) { |
| 139 | if (shouldLog("ERROR")) { |
| 140 | write("ERROR " + build(message, extra)) |
| 141 | } |
| 142 | }, |
| 143 | warn(message?: any, extra?: Record<string, any>) { |
| 144 | if (shouldLog("WARN")) { |
| 145 | write("WARN " + build(message, extra)) |