Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OC-6735 Capture number of OC studies by type and phase_Version_1.1 #49

Open
wants to merge 1 commit into
base: 1.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.akaza.openclinica.designer.core.NaiveTrustProvider;
import org.akaza.openclinica.designer.web.HostAccessService;
import org.cdisc.ns.odm.v130.ODM;
import org.codehaus.jackson.map.ObjectMapper;
import org.openclinica.ns.response.v31.Response;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down Expand Up @@ -137,6 +138,11 @@ private ODM getMetadata() {
InputStreamReader isr = new InputStreamReader(studyMetadataXML, "UTF-8");
odm = (ODM) this.unMarshaller.unmarshal(new StreamSource(isr));
// odm = (ODM) this.unMarshaller.unmarshal(new StreamSource(studyMetadataXML));
if (odm != null) {
ObjectMapper mapper = new ObjectMapper();
String jsonInString = mapper.writeValueAsString(odm);
logger.debug(jsonInString);
}
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Expand Down
47 changes: 0 additions & 47 deletions src/main/resources/logback.groovy

This file was deleted.

31 changes: 31 additions & 0 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true">

<property resource="resources.properties" />

<appender name="consoleAppender" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<charset>UTF-8</charset>
<Pattern>%d %-4relative [%thread] %-5level %logger{35} - %msg%n</Pattern>
</encoder>
</appender>

<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover. Make sure the path matches the one in the file element or else
the rollover logs are placed in the working directory. -->
<fileNamePattern>${logFilePath}application_%d{yyyy-MM-dd}.log</fileNamePattern>
<!-- keep 30 days' worth of history -->
<maxHistory>30</maxHistory>
</rollingPolicy>

<encoder>
<charset>UTF-8</charset>
<pattern>%d %-4relative [%thread] %-5level %logger{35} - %msg%n</pattern>
</encoder>
</appender>

<logger name="org.akaza.openclinica.designer" level="DEBUG">
<appender-ref ref="FILE"/>
re </logger>
</configuration>
1 change: 1 addition & 0 deletions src/main/resources/resources.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ hostlist.url=
hostlist.port=
hostlist.username=
hostlist.password=
logFilePath=/usr/local/tomcat/