Getting Logrus to work with viper

im trying to get logrus to read from viper.

Using the recommendation library in logrus below.

im trying to setup my config in a grouped way.
like logging: all its properties in yml format

i’m unsure how to get this to work since the examples make it look like its not possible

my properties file:
app:
port: 80
name: testappsvcliv
db:
enable: “N”
driver: pgx
url: postgres://postgres:postpass@localhost/pqgotest
max-open: 5
max-idle: 0
max-timeout: 100ms
logging:

  • level: debug*

Added a issue tracker with solution since branch creation permissions aren’t available on that repo.
alternatively you can write the function yourself in your codebase without waiting for that to be absorbed into the library

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.