Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
springlogback配置文件的使用_Spring_Logback - Fatal编程技术网

springlogback配置文件的使用

springlogback配置文件的使用,spring,logback,Spring,Logback,在logback.xml中,您可以定义几个标记,例如和 如果我有这样的东西: <springProfile name="development"> ... </springProfile> <springProfile name="development, test"> ... </springProfile> ... ... “开发”配置文件是包含“开发人员”的两个配置文件的联合,还是“开发人员”配置文件

在logback.xml中,您可以定义几个
标记,例如

如果我有这样的东西:

<springProfile name="development">
          ...
</springProfile>
<springProfile name="development, test">
        ...
</springProfile>

...
...
“开发”配置文件是包含“开发人员”的两个配置文件的联合,还是“开发人员”配置文件仅激活前一个配置文件还是后一个配置文件?


<springProfile name="development">
    <!-- configuration to be enabled when the "development" profile is active -->
</springProfile>
<springProfile name="development, test">
    <!-- configuration to be enabled when the "development" OR "test" profiles are active -->
</springProfile>

因此,两者中的配置都与
开发
概要文件相关,但只有后者与
测试

相关。请检查此链接: