move io out of system (#19442)
* move io out of system * fix tests * fix tests * next step * rename to syncio * rename * fix nimscript * comma * fix * fix parts of errors * good for now * fix test
This commit is contained in:
parent
486cb09ec2
commit
891329cd4b
24 changed files with 92 additions and 42 deletions
|
|
@ -48,7 +48,7 @@
|
|||
## .. warning::
|
||||
## For loggers that log to a console or to files, only error and fatal
|
||||
## messages will cause their output buffers to be flushed immediately.
|
||||
## Use the `flushFile proc <io.html#flushFile,File>`_ to flush the buffer
|
||||
## Use the `flushFile proc <syncio.html#flushFile,File>`_ to flush the buffer
|
||||
## manually if needed.
|
||||
##
|
||||
## Handlers
|
||||
|
|
@ -146,6 +146,9 @@ import strutils, times
|
|||
when not defined(js):
|
||||
import os
|
||||
|
||||
when defined(nimPreviewSlimSystem):
|
||||
import std/syncio
|
||||
|
||||
type
|
||||
Level* = enum ## \
|
||||
## Enumeration of logging levels.
|
||||
|
|
@ -346,7 +349,7 @@ method log*(logger: ConsoleLogger, level: Level, args: varargs[string, `$`]) =
|
|||
##
|
||||
## **Note:** Only error and fatal messages will cause the output buffer
|
||||
## to be flushed immediately. Use the `flushFile proc
|
||||
## <io.html#flushFile,File>`_ to flush the buffer manually if needed.
|
||||
## <syncio.html#flushFile,File>`_ to flush the buffer manually if needed.
|
||||
##
|
||||
## See also:
|
||||
## * `log method<#log.e,FileLogger,Level,varargs[string,]>`_
|
||||
|
|
@ -422,7 +425,7 @@ when not defined(js):
|
|||
## **Notes:**
|
||||
## * Only error and fatal messages will cause the output buffer
|
||||
## to be flushed immediately. Use the `flushFile proc
|
||||
## <io.html#flushFile,File>`_ to flush the buffer manually if needed.
|
||||
## <syncio.html#flushFile,File>`_ to flush the buffer manually if needed.
|
||||
## * This method is not available for the JavaScript backend.
|
||||
##
|
||||
## See also:
|
||||
|
|
@ -600,7 +603,7 @@ when not defined(js):
|
|||
## **Notes:**
|
||||
## * Only error and fatal messages will cause the output buffer
|
||||
## to be flushed immediately. Use the `flushFile proc
|
||||
## <io.html#flushFile,File>`_ to flush the buffer manually if needed.
|
||||
## <syncio.html#flushFile,File>`_ to flush the buffer manually if needed.
|
||||
## * This method is not available for the JavaScript backend.
|
||||
##
|
||||
## See also:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue