Skip to content

Improve Log configuration For Kuchain #17

@aquarius-kuchain

Description

@aquarius-kuchain

Summary

Add a config for kucd to logger.

Log in Kuchain

In kuchain, we complete the log implementation based on zap.The current version only provides the most basic log writing function. It is not possible to enable users to flexibly manage logs based on configuration, so we will improve the log configuration of kuchain.

There are two level for logger, first is interface for cosmos-sdk, it define log meta-data, and second is the zap logger, it define the log behavior, like file path, log file size limit, log rotation etc. we will add some config for the log behavior.

Log Configuration

The log config will define this behavior:

  • kucd params for log path
  • log rotation by gopkg.in/natefinch/lumberjack.v2
  • pure log module for 3rd tools
  • panic log format

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions