Skip to content

Commit

Permalink
Added config for logging. And corrected mime type for json api.
Browse files Browse the repository at this point in the history
  • Loading branch information
vgregion committed May 19, 2022
1 parent 1ee7ca7 commit d5da133
Show file tree
Hide file tree
Showing 21 changed files with 579 additions and 431 deletions.
6 changes: 6 additions & 0 deletions core-bc/modules/intsvc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -212,5 +212,11 @@
<artifactId>jackson-databind</artifactId>
<version>2.13.2.2</version>
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.17.2</version>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public Feed getIFeed(@PathParam("id") Long id, @QueryParam("by") String sortFiel
}

@GET
@Produces({"application/json", "application/atom+xml;type=entry;charset=UTF-8"})
@Produces({"application/json", "application/json;type=entry;charset=UTF-8"})
@Path("/{id}/metadata.json")
public Entry getIFeedEntryAsJson(@PathParam("id") final Long id) {
return getIFeedEntry(id);
Expand Down
23 changes: 0 additions & 23 deletions core-bc/modules/intsvc/src/main/resources/log4j.properties

This file was deleted.

13 changes: 13 additions & 0 deletions core-bc/modules/intsvc/src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</Console>
</Appenders>
<Loggers>
<Root level="info">
<AppenderRef ref="Console"/>
</Root>
</Loggers>
</Configuration>
Loading

0 comments on commit d5da133

Please sign in to comment.