File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
src/main/java/org/audit4j/core Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,12 @@ public void init() {
82
82
*/
83
83
@ Override
84
84
public ZeroCopyFileWriter write (String event ) {
85
- String realPath = FileHandlerUtil .generateOutputFilePath (path );
85
+ // String realPath = FileHandlerUtil.generateOutputFilePath(path);
86
+
87
+ String realPath = FileHandlerUtil .generateOutputFilePath (
88
+ path ,
89
+ FileHandlerUtil .generateAuditFileName ());
90
+
86
91
try {
87
92
if (FileHandlerUtil .isFileAlreadyExists (realPath )) {
88
93
randomAccessFile = new RandomAccessFile (realPath , CoreConstants .READ_WRITE );
Original file line number Diff line number Diff line change @@ -91,4 +91,8 @@ public void stop() {
91
91
public void setDateFormat (String dateFormat ) {
92
92
this .dateFormat = dateFormat ;
93
93
}
94
+
95
+ public String getDateFormat () {
96
+ return dateFormat ;
97
+ }
94
98
}
You can’t perform that action at this time.
0 commit comments