Package com.axelor.data.csv
Class CSVLogger
java.lang.Object
com.axelor.data.csv.CSVLogger
This
CSVLogger
class logs all errors during the import into a specific file.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Log the row into a specific file.void
prepareInput
(CSVInput csvInput, String[] fields) Configures the file that will receive the rows in error
-
Constructor Details
-
CSVLogger
Main constructor- Parameters:
csvConfig
- the configdir
- that will contain the files
-
-
Method Details
-
getCurrentFile
-
log
Log the row into a specific file.- Parameters:
values
- the row values
-
prepareInput
Configures the file that will receive the rows in error- Parameters:
csvInput
- the inputfields
- the header fields
-