فهرست منبع

refactor: move log config template to emqx_conf app

zmstone 1 سال پیش
والد
کامیت
9588fee2f8
3فایلهای تغییر یافته به همراه22 افزوده شده و 21 حذف شده
  1. 2 2
      .ci/docker-compose-file/docker-compose-redis-single-tcp.yaml
  2. 0 19
      apps/emqx/etc/emqx.conf
  3. 20 0
      apps/emqx_conf/etc/emqx_conf.conf

+ 2 - 2
.ci/docker-compose-file/docker-compose-redis-single-tcp.yaml

@@ -6,8 +6,8 @@ services:
     image: public.ecr.aws/docker/library/redis:${REDIS_TAG}
     image: public.ecr.aws/docker/library/redis:${REDIS_TAG}
     volumes:
     volumes:
       - ./redis/single-tcp:/usr/local/etc/redis/
       - ./redis/single-tcp:/usr/local/etc/redis/
-    ports:
-      - "6379:6379"
+    #ports:
+      #- "6379:6379"
     command: redis-server /usr/local/etc/redis/redis.conf
     command: redis-server /usr/local/etc/redis/redis.conf
     restart: always
     restart: always
     networks:
     networks:

+ 0 - 19
apps/emqx/etc/emqx.conf

@@ -1,20 +1 @@
-## EMQX provides support for two primary log handlers: `file` and `console`, with an additional `audit` handler specifically designed to always direct logs to files.
-## The system's default log handling behavior can be configured via the environment variable `EMQX_DEFAULT_LOG_HANDLER`, which accepts the following settings:
-##
-##   - `file`: Directs log output exclusively to files.
-##   - `console`: Channels log output solely to the console.
-##
-## It's noteworthy that `EMQX_DEFAULT_LOG_HANDLER` is set to `file` when EMQX is initiated via systemd `emqx.service` file.
-## In scenarios outside systemd initiation, `console` serves as the default log handler.
-
-## Read more about configs here: {{ emqx_configuration_doc_log }}
-
-log {
-    # file {
-    #     level = warning
-    # }
-    # console {
-    #     level = warning
-    # }
-}
 
 

+ 20 - 0
apps/emqx_conf/etc/emqx_conf.conf

@@ -19,3 +19,23 @@ cluster {
   name = emqxcl
   name = emqxcl
   discovery_strategy = manual
   discovery_strategy = manual
 }
 }
+
+## EMQX provides support for two primary log handlers: `file` and `console`, with an additional `audit` handler specifically designed to always direct logs to files.
+## The system's default log handling behavior can be configured via the environment variable `EMQX_DEFAULT_LOG_HANDLER`, which accepts the following settings:
+##
+##   - `file`: Directs log output exclusively to files.
+##   - `console`: Channels log output solely to the console.
+##
+## It's noteworthy that `EMQX_DEFAULT_LOG_HANDLER` is set to `file` when EMQX is initiated via systemd `emqx.service` file.
+## In scenarios outside systemd initiation, `console` serves as the default log handler.
+
+## Read more about configs here: {{ emqx_configuration_doc_log }}
+
+# log {
+#     file {
+#         level = warning
+#     }
+#     console {
+#         level = warning
+#     }
+# }