Skip to content

invalid index value for tuple subscript #119

@moin110x

Description

@moin110x

Hi,
im am trying to compile this code that i just directly copied form the documentaiton provided in the github page
of this repository

defaultChroniclesStream.output.writer = proc (logLevel: LogLevel, msg: LogOutputStr) {.gcsafe.} = database.writeLogEntry(msg)

link:
https://github.com/status-im/nim-chronicles#working-with-dynamic-outputs

and getting the following error during compilation:

chronicles-0.10.3\chronicles\log_output.nim(755, 74) Error: invalid index value for tuple subscript

and also i get the same error when trying to use log file

code:
var config = loadConfiguration() let success = defaultChroniclesStream.output.open(config.logFile, fmAppend) info "APPLICATION STARTED"

https://github.com/status-im/nim-chronicles#working-with-file-outputs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions