| 1 | module log |
| 2 | |
| 3 | // Logger is an interface that describes a generic Logger |
| 4 | pub interface Logger { |
| 5 | get_level() Level |
| 6 | mut: |
| 7 | fatal(s string) |
| 8 | error(s string) |
| 9 | warn(s string) |
| 10 | info(s string) |
| 11 | debug(s string) |
| 12 | // utility methods: |
| 13 | set_level(level Level) |
| 14 | set_always_flush(should_flush bool) |
| 15 | free() |
| 16 | } |
| 17 |