diff options
| author | gingerBill <bill@gingerbill.org> | 2019-03-30 14:51:42 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-03-30 14:51:42 +0000 |
| commit | 68d4bde82fe58150871feb91e7c3dbc0de4e7662 (patch) | |
| tree | 67c3f3e549f66ce58e356e47d40a5cc7942ff5dc /core/log | |
| parent | a019059975736fa099958b00f3927f57a6240613 (diff) | |
Overrideable stdin, stdout, stderr at the `context` level
Diffstat (limited to 'core/log')
| -rw-r--r-- | core/log/file_console_logger.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/log/file_console_logger.odin b/core/log/file_console_logger.odin index 1a961f910..3778d3e53 100644 --- a/core/log/file_console_logger.odin +++ b/core/log/file_console_logger.odin @@ -69,7 +69,7 @@ file_console_logger_proc :: proc(logger_data: rawptr, level: Level, text: string h : os.Handle; if(data.file_handle != os.INVALID_HANDLE) do h = data.file_handle; - else do h = level <= Level.Error ? os.stdout : os.stderr; + else do h = level <= Level.Error ? context.stdout : context.stderr; backing: [1024]byte; //NOTE(Hoej): 1024 might be too much for a header backing, unless somebody has really long paths. buf := strings.builder_from_slice(backing[:]); |