-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
29 additions
and
39 deletions.
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
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
16 changes: 1 addition & 15 deletions
16
cineast-core/src/main/java/org/vitrivr/cineast/core/db/dao/MetadataAccessSpecification.java
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 |
---|---|---|
@@ -1,22 +1,8 @@ | ||
package org.vitrivr.cineast.core.db.dao; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Use '*' in either domain or key to retrieve simply all information. In general, if an empty specification list is provided, no metadata is returned. | ||
*/ | ||
public class MetadataAccessSpecification { | ||
|
||
public final MetadataType type; | ||
public final String domain; | ||
public final String key; | ||
public record MetadataAccessSpecification(MetadataType type, String domain, String key) { | ||
|
||
public MetadataAccessSpecification( | ||
@JsonProperty("type") MetadataType type, | ||
@JsonProperty("domain") String domain, | ||
@JsonProperty("key") String key) { | ||
this.type = type; | ||
this.domain = domain; | ||
this.key = key; | ||
} | ||
} |
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
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
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 |
---|---|---|
@@ -1,34 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration status="INFO"> | ||
<Properties> | ||
<Property name="loggingPattern">[%d{MM-dd HH:mm:ss.SSS}][%-5level][%t] %C{1} - %msg%n</Property> | ||
</Properties> | ||
<Appenders> | ||
<Console name="Console" target="SYSTEM_OUT"> | ||
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %p %c{1.} - %msg%n"/> | ||
<ThresholdFilter level="DEBUG" onMatch="ACCEPT" onMismatch="DENY"/> | ||
</Console> | ||
<RollingFile name="File"> | ||
<DefaultRolloverStrategy max="5"/> | ||
<FileName>logs/cineast.log</FileName> | ||
<FilePattern>logs/%d{yyyy-MM-dd-hh}-%i.log.zip</FilePattern> | ||
<PatternLayout pattern="${loggingPattern}"/> | ||
<Policies> | ||
<SizeBasedTriggeringPolicy size="2000 KB"/> | ||
<SizeBasedTriggeringPolicy size="5000 KB"/> | ||
</Policies> | ||
<DefaultRolloverStrategy max="5"/> | ||
<ThresholdFilter level="TRACE" onMatch="ACCEPT" onMismatch="DENY"/> | ||
</RollingFile> | ||
</Appenders> | ||
<Loggers> | ||
<logger name="io" level="ERROR"> | ||
</logger> | ||
<logger name="org" level="INFO" additivity="true"> | ||
</logger> | ||
<logger name="org.vitrivr.cineast" level="TRACE" additivity="true"> | ||
</logger> | ||
<Root level="info"> | ||
<AppenderRef ref="Console"/> | ||
<AppenderRef ref="File"/> | ||
</Root> | ||
<logger additivity="true" level="INFO" name="org"> | ||
</logger> | ||
<logger additivity="true" level="TRACE" name="org.vitrivr.cineast"> | ||
</logger> | ||
<logger level="ERROR" name="io"> | ||
</logger> | ||
</Loggers> | ||
<Properties> | ||
<Property name="loggingPattern">[%d{MM-dd HH:mm:ss.SSS}][%-5level][%t] %C{1} - %msg%n</Property> | ||
</Properties> | ||
</Configuration> |