فهرست منبع

Add console config into yamlutil sample config

zry 3 سال پیش
والد
کامیت
46d2e5edeb
1فایلهای تغییر یافته به همراه9 افزوده شده و 0 حذف شده
  1. 9 0
      hieda_yamlutil/default_config_sample.go

+ 9 - 0
hieda_yamlutil/default_config_sample.go

@@ -5,6 +5,15 @@ const DefaultConfigSampel = `
 enable: true
 # Backends
 backends:
+  console_stdout:
+    # Should be one of 'console', 'file', 'alisls'
+    type: "console"
+    # Minimum emit level, should be one of 'DEBUG', 'VERBOSE', 'INFO', 'WARN', 'ERROR', 'PANIC', 'FATAL'
+    level: "INFO"
+    # This field should exist for type 'console'
+    console_config:
+	  # Should be one of 'stdout', 'stderr'
+      to: "stdout"
   local_rotate_file:
     # Should be one of 'console', 'file', 'alisls'
     type: "file"