Appendix 7 - Console log overview

Console logs are fundamental in order to observe the state of the executions. Below some common log patterns are shown and explained.

No new file to process

When scheduled the process will look at the directory pointed by the variable ACQ_BATCH_TRX_INPUT_PATH (see Set environment variables)and attempt to process any file placed into it. In case nothing has been found the execution log will look like this:

2022-03-02 13:09:00.001  INFO 4268 --- [poolScheduler-1] i.g.p.r.t.b.TransactionFilterScheduler   : CsvTransactionReader scheduled job started at Wed Mar 02 13:09:00 CET 2022
2022-03-02 13:09:00.002  INFO 4268 --- [poolScheduler-1] i.g.p.r.t.batch.TransactionFilterBatch   : No transaction file has been found on configured path: file:/tmp/batch_acquirer/input_trx/
2022-03-02 13:09:00.002  INFO 4268 --- [poolScheduler-1] i.g.p.r.t.b.TransactionFilterScheduler   : CsvTransactionReader scheduled job ended at Wed Mar 02 13:09:00 CET 2022
2022-03-02 13:09:00.002  INFO 4268 --- [poolScheduler-1] i.g.p.r.t.b.TransactionFilterScheduler   : Completed in: 1 (ms)

A file has been found: start of batch execution

Otherwise, if a new file has been found in the input directory those lines will be displayed at the start of the execution log:

2022-03-02 13:15:30.005  INFO 4268 --- [poolScheduler-1] i.g.p.r.t.b.TransactionFilterScheduler   : CsvTransactionReader scheduled job started at Wed Mar 02 13:15:30 CET 2022
2022-03-02 13:15:30.007  INFO 4268 --- [poolScheduler-1] i.g.p.r.t.batch.TransactionFilterBatch   : Found 1 resource. Starting filtering process

Lifecycle of an input file processing

Each time the Batch Acquirer starts processing a file a proper line will be logged:

2022-03-02 13:15:31.387  INFO 4268 --- [rTaskExecutor-2] .r.t.b.s.l.TransactionReaderStepListener : Starting processing for file: file:/tmp/batch_acquirer/input_trx/CSTAR.99999.TRNLOG.20220302.121521.001.csv

after completion a new line will log the end of the file processing:

2022-03-02 13:15:31.502  INFO 4268 --- [rTaskExecutor-2] .r.t.b.s.l.TransactionReaderStepListener : Processing for file: file:/tmp/batch_acquirer/input_trx/CSTAR.99999.TRNLOG.20220302.121521.001.csv ended with status: COMPLETED

another log will highlight that the file being processed will be encrypted:

2022-03-02 13:15:31.532  INFO 4268 --- [rTaskExecutor-2] i.g.p.r.t.b.s.w.PGPFlatFileItemWriter    : Encrypting file CSTAR.99999.TRNLOG.20220302.121521.001.csv with PGP key 85286E3AC9C03C5B69AF61C589580E7CC3771ED4

at last a new line will log the outcome of the upload of the file to CentroStella:

2022-03-02 13:15:32.134  INFO 4268 --- [rTaskExecutor-3] i.g.p.r.t.connector.HpanRestClientImpl   : File CSTAR.99999.TRNLOG.20220302.121521.001.csv.pgp uploaded with success (status was: 201)

Last updated