indy-node-container icon indicating copy to clipboard operation
indy-node-container copied to clipboard

Improve Logging

Open solidnerd opened this issue 3 years ago • 4 comments

This PR introducing a lot of changes to the handling of the Logging. Introducing new variables:

  • INDY_NODE_LOG_LEVEL
  • INDY_NODE_LOG_STDOUT
  • INDY_NODE_LOG_DIR

Closes #68 #74

solidnerd avatar Feb 24 '22 23:02 solidnerd

Afterwards in the container it will be set

 docker exec -it $(docker ps -ql)  cat /etc/indy/indy_config.py
# Current network
NETWORK_NAME = "sandbox"

# Disable stdout logging
enableStdOutLogging = False

# Directory to store ledger.
LEDGER_DIR = '/var/lib/indy'

# Directory to store logs.
LOG_DIR = "/var/log/indy"

# Directory to store keys.
KEYS_DIR = '/var/lib/indy'

# Directory to store genesis transactions files.
GENESIS_DIR = '/var/lib/indy'

# Directory to store backups.
BACKUP_DIR = '/var/lib/indy/backup'

# Directory to store plugins.
PLUGINS_DIR = '/var/lib/indy/plugins'

# Directory to store node info.
NODE_INFO_DIR = '/var/lib/indy'

# Defines the LogLevel of IndyNode 
logLevel = 0

solidnerd avatar Feb 24 '22 23:02 solidnerd

Please add new env variables to .env

Echsecutor avatar Mar 04 '22 08:03 Echsecutor

@solidnerd do you have a few minutes to have another look at this PR? Or should I just do the suggested changes and have someone else review?

Echsecutor avatar Apr 01 '22 08:04 Echsecutor

@Echsecutor I had some problems with my GitHub notifications in the past that was the reason why I didn't responded so fast. Everything you mentioned was done from my side. So lets meet next week and check it again.

solidnerd avatar Apr 22 '22 07:04 solidnerd