Skip to content

Commit

Permalink
3.20.2
Browse files Browse the repository at this point in the history
  • Loading branch information
goodcode-best committed Mar 2, 2020
1 parent 9534837 commit 392daf5
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 1 deletion.
35 changes: 35 additions & 0 deletions Help on License
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.
59 changes: 59 additions & 0 deletions log4j2.xml
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>
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.huawei.storage</groupId>
<artifactId>esdk-obs-java</artifactId>
<version>3.20.1</version>
<version>3.20.2</version>
<packaging>jar</packaging>

<name>OBS SDK for Java</name>
Expand Down

0 comments on commit 392daf5

Please sign in to comment.