Browse Source

增加配置文件

wisejohn 3 weeks ago
parent
commit
4fd7632cf7
2 changed files with 30 additions and 0 deletions
  1. 29 0
      config/config.ini
  2. 1 0
      config/profile.txt

+ 29 - 0
config/config.ini

@@ -0,0 +1,29 @@
+#全局配置 session
+[global]
+#实例 id 标识
+id = monitor_01
+#日志等级,debug/info/warn/error
+loglevel = debug
+#日志目录,暂不支持修改
+logdir = /tmp/monitor.log
+
+
+#数据同步配置
+[sync]
+#共享内存大小(bytes)
+sync_shm_size = 1048576
+#同步数据的程序名称(即 A 程序的名字)
+sync_name = demo 
+#数据同步周期(ms),A程序数据上报到PC端的发送频率
+sync_interval = 100
+#程序配置文件地址
+sync_config_file = ./config/profile.txt
+
+#日志
+[logger]
+#日志输出服务器地址
+#server_ip = 172.16.36.251
+#端口
+#server_port = 6001
+#日志文件本地路径
+target_file = /tmp/monitor_logger.log

+ 1 - 0
config/profile.txt

@@ -0,0 +1 @@
+