美文网首页区块链学习笔记
Configure Bitshares log file

Configure Bitshares log file

作者: 杨小伟的世界 | 来源:发表于2018-06-11 15:47 被阅读0次

    This is a little tricky to configure the log file of bitshares.

    Define a file appender

    Comment out following lines to tell the log file.

    [log.file_appender.default]
    filename=logs/default.log
    

    The file "logs/default.log" is the relative path to the data path, which you specify in the witness_node command line.

    For example, the command line option is --data-dir data/yw-blockprod, then the log file is in data/yw-blockprod directory.

    Append log to the file appender

    logger.default is the default logger.

    If we want to print log in a log file, we need to add a file appender to the default logger.

    [logger.default]
    level=info
    appenders=stderr,default
    

    Then we could see the logs in the file logs/default.log.

    Done~

    相关文章

      网友评论

        本文标题:Configure Bitshares log file

        本文链接:https://www.haomeiwen.com/subject/ypdheftx.html