|
48 | 48 | ## .. warning:: |
49 | 49 | ## For loggers that log to a console or to files, only error and fatal |
50 | 50 | ## messages will cause their output buffers to be flushed immediately. |
51 | | -## Use the `flushFile proc <io.html#flushFile,File>`_ to flush the buffer |
| 51 | +## Use the `flushFile proc <syncio.html#flushFile,File>`_ to flush the buffer |
52 | 52 | ## manually if needed. |
53 | 53 | ## |
54 | 54 | ## Handlers |
@@ -146,6 +146,9 @@ import strutils, times |
146 | 146 | when not defined(js): |
147 | 147 | import os |
148 | 148 |
|
| 149 | +when defined(nimPreviewSlimSystem): |
| 150 | + import std/syncio |
| 151 | + |
149 | 152 | type |
150 | 153 | Level* = enum ## \ |
151 | 154 | ## Enumeration of logging levels. |
@@ -346,7 +349,7 @@ method log*(logger: ConsoleLogger, level: Level, args: varargs[string, `$`]) = |
346 | 349 | ## |
347 | 350 | ## **Note:** Only error and fatal messages will cause the output buffer |
348 | 351 | ## to be flushed immediately. Use the `flushFile proc |
349 | | - ## <io.html#flushFile,File>`_ to flush the buffer manually if needed. |
| 352 | + ## <syncio.html#flushFile,File>`_ to flush the buffer manually if needed. |
350 | 353 | ## |
351 | 354 | ## See also: |
352 | 355 | ## * `log method<#log.e,FileLogger,Level,varargs[string,]>`_ |
@@ -422,7 +425,7 @@ when not defined(js): |
422 | 425 | ## **Notes:** |
423 | 426 | ## * Only error and fatal messages will cause the output buffer |
424 | 427 | ## to be flushed immediately. Use the `flushFile proc |
425 | | - ## <io.html#flushFile,File>`_ to flush the buffer manually if needed. |
| 428 | + ## <syncio.html#flushFile,File>`_ to flush the buffer manually if needed. |
426 | 429 | ## * This method is not available for the JavaScript backend. |
427 | 430 | ## |
428 | 431 | ## See also: |
@@ -600,7 +603,7 @@ when not defined(js): |
600 | 603 | ## **Notes:** |
601 | 604 | ## * Only error and fatal messages will cause the output buffer |
602 | 605 | ## to be flushed immediately. Use the `flushFile proc |
603 | | - ## <io.html#flushFile,File>`_ to flush the buffer manually if needed. |
| 606 | + ## <syncio.html#flushFile,File>`_ to flush the buffer manually if needed. |
604 | 607 | ## * This method is not available for the JavaScript backend. |
605 | 608 | ## |
606 | 609 | ## See also: |
|
0 commit comments