fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From my...@apache.org
Subject [fineract-cn-provisioner] 09/50: enhanced logging for demo server usage
Date Mon, 22 Jan 2018 15:16:07 GMT
This is an automated email from the ASF dual-hosted git repository.

myrle pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract-cn-provisioner.git

commit d663896e9e38bae3f7cff581f7a20bd19cad3b4b
Author: mgeiss <mgeiss@mifos.org>
AuthorDate: Sat Apr 8 09:33:42 2017 +0200

    enhanced logging for demo server usage
---
 .../applications/IdentityServiceInitializer.java   |  1 +
 service/src/main/resources/logback.xml             | 25 +++++++++++++++++-----
 2 files changed, 21 insertions(+), 5 deletions(-)

diff --git a/service/src/main/java/io/mifos/provisioner/internal/service/applications/IdentityServiceInitializer.java
b/service/src/main/java/io/mifos/provisioner/internal/service/applications/IdentityServiceInitializer.java
index 3606a10..c1f72fe 100644
--- a/service/src/main/java/io/mifos/provisioner/internal/service/applications/IdentityServiceInitializer.java
+++ b/service/src/main/java/io/mifos/provisioner/internal/service/applications/IdentityServiceInitializer.java
@@ -94,6 +94,7 @@ public class IdentityServiceInitializer {
       final IdentityManager identityService = applicationCallContextProvider.getApplication(IdentityManager.class,
identityManagerUri);
       try {
         final String randomPassword = RandomStringUtils.random(8, true, true);
+        this.logger.debug("Generated password for tenant super user '{}' is '{}'.", tenantIdentifier,
randomPassword);
 
         final byte[] salt = Base64Utils.encode(("antony" + tenantIdentifier + this.domain).getBytes());
 
diff --git a/service/src/main/resources/logback.xml b/service/src/main/resources/logback.xml
index 3f27e34..dc246d2 100644
--- a/service/src/main/resources/logback.xml
+++ b/service/src/main/resources/logback.xml
@@ -17,11 +17,11 @@
 -->
 <configuration>
     <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
-        <file>provisioner.log</file>
+        <file>logs/provisioner.log</file>
         <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
             <fileNamePattern>provisioner.%d{yyyy-MM-dd}.log</fileNamePattern>
-            <maxHistory>30</maxHistory>
-            <totalSizeCap>3GB</totalSizeCap>
+            <maxHistory>7</maxHistory>
+            <totalSizeCap>2GB</totalSizeCap>
         </rollingPolicy>
         <encoder>
             <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
@@ -33,8 +33,23 @@
         </encoder>
     </appender>
 
-    <root level="info">
+    <logger name="com" level="INFO">
+        <appender-ref ref="STDOUT" />
+    </logger>
+
+    <logger name="org" level="INFO">
+        <appender-ref ref="STDOUT" />
+    </logger>
+
+    <logger name="io" level="INFO">
+        <appender-ref ref="STDOUT" />
+    </logger>
+
+    <logger name="net" level="INFO">
+        <appender-ref ref="STDOUT" />
+    </logger>
+
+    <root level="DEBUG">
         <appender-ref ref="FILE"/>
-        <appender-ref ref="STDOUT"/>
     </root>
 </configuration>
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
myrle@apache.org.

Mime
View raw message