Skip to content

Commit bb81587

Browse files
committed
Fixed logging
1 parent 5c52f23 commit bb81587

File tree

3 files changed

+10
-19
lines changed

3 files changed

+10
-19
lines changed

src/main/java/org/radarcns/RestructureAvroRecords.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ public static void main(String [] args) throws Exception {
6464
logger.error("Processing failed", ex);
6565
}
6666

67-
logger.info("Processed %d files and %,d records", restr.getProcessedFileCount(), restr.getProcessedRecordsCount());
68-
logger.info("Time taken: %.2f seconds", (System.currentTimeMillis() - time1)/1000d);
67+
logger.info("Processed {} files and {} records", restr.getProcessedFileCount(), restr.getProcessedRecordsCount());
68+
logger.info("Time taken: {} seconds", (System.currentTimeMillis() - time1)/1000d);
6969
}
7070

7171
public RestructureAvroRecords(String inputPath, String outputPath) {
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Root logger option
2+
log4j.rootLogger=INFO, stdout
3+
4+
# Direct log messages to stdout
5+
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
6+
log4j.appender.stdout.Target=System.out
7+
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
8+
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n

src/main/resources/log4j2.xml

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)