-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9534837
commit 392daf5
Showing
3 changed files
with
95 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
This help guides Huawei engineers to add or modify the license announcement | ||
during the development. | ||
|
||
In the case that you add a new file, the text below should be added in the head. | ||
Copyright 2019 Huawei Technologies Co.,Ltd. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software distributed | ||
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR | ||
CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
specific language governing permissions and limitations under the License. | ||
|
||
|
||
In the case that you modify one existing file, the text below should be added after | ||
the exiting license. | ||
Huawei has modified this source file. | ||
|
||
Copyright 2019 Huawei Technologies Co., Ltd. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
use this file except in compliance with the License. You may obtain a copy of | ||
the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
License for the specific language governing permissions and limitations under | ||
the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration status="WARN"> | ||
<Appenders> | ||
<!-- console appender --> | ||
<Console name="Console" target="SYSTEM_OUT"> | ||
<PatternLayout charset="UTF-8" pattern="%d{yyyy-MM-dd HH:mm:ss SSS}|%t|%-5p|%m%n" /> | ||
</Console> | ||
|
||
<!-- north interface log --> | ||
<RollingFile name="NorthInterfaceLogAppender" fileName="${sys:user.dir}/logs/OBS-SDK.interface_north.log" | ||
filePattern="${sys:user.dir}/logs/OBS-SDK.interface_north-%i.log" filePermissions="rw-------"> | ||
<PatternLayout charset="UTF-8" pattern="%d{yyyy-MM-dd HH:mm:ss SSS}|%t|%-5p|%m%n" /> | ||
<SizeBasedTriggeringPolicy size="20M" /> | ||
<DefaultRolloverStrategy max="10"/> | ||
</RollingFile> | ||
|
||
<!-- south interface log --> | ||
<RollingFile name="SouthInterfaceLogAppender" fileName="${sys:user.dir}/logs/OBS-SDK.interface_south.log" | ||
filePattern="${sys:user.dir}/logs/OBS-SDK.interface_south-%i.log" filePermissions="rw-------"> | ||
<PatternLayout charset="UTF-8" pattern="%d{yyyy-MM-dd HH:mm:ss SSS}|%t|%-5p|%m%n" /> | ||
<SizeBasedTriggeringPolicy size="20M" /> | ||
<DefaultRolloverStrategy max="10"/> | ||
</RollingFile> | ||
|
||
<!-- access log --> | ||
<RollingFile name="AccessLogAppender" fileName="${sys:user.dir}/logs/OBS-SDK.access.log" | ||
filePattern="${sys:user.dir}/logs/OBS-SDK.access-%i.log" filePermissions="rw-------"> | ||
<PatternLayout charset="UTF-8" pattern="%t|%-5p|%m%n" /> | ||
<SizeBasedTriggeringPolicy size="20M" /> | ||
<DefaultRolloverStrategy max="10"/> | ||
</RollingFile> | ||
|
||
</Appenders> | ||
|
||
<Loggers> | ||
<!-- north log --> | ||
<Logger name="com.obs.services.ObsClient" level="WARN" | ||
additivity="false"> | ||
<AppenderRef ref="NorthInterfaceLogAppender" /> | ||
</Logger> | ||
|
||
<!-- south log --> | ||
<Logger name="com.obs.services.internal.RestStorageService" level="WARN" | ||
additivity="false"> | ||
<AppenderRef ref="SouthInterfaceLogAppender" /> | ||
</Logger> | ||
|
||
<!-- access log --> | ||
<Logger name="com.obs.log.AccessLogger" level="INFO" | ||
additivity="false"> | ||
<AppenderRef ref="AccessLogAppender" /> | ||
</Logger> | ||
|
||
<!-- console log --> | ||
<Root level="WARN"> | ||
<AppenderRef ref="Console" /> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters