Skip to content

Commit 7ace746

Browse files
committed
#816 Fix the reliance on log4j libraries in the classpath FileStreamer by switching logging to slf4j interfaces.
1 parent 9f4d937 commit 7ace746

File tree

1 file changed

+2
-2
lines changed
  • spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/streaming

1 file changed

+2
-2
lines changed

spark-cobol/src/main/scala/za/co/absa/cobrix/spark/cobol/source/streaming/FileStreamer.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
package za.co.absa.cobrix.spark.cobol.source.streaming
1818

1919
import org.apache.hadoop.conf.Configuration
20+
import org.slf4j.{Logger, LoggerFactory}
2021
import org.apache.hadoop.fs.{ContentSummary, Path}
21-
import org.apache.log4j.Logger
2222
import za.co.absa.cobrix.cobol.reader.common.Constants
2323
import za.co.absa.cobrix.cobol.reader.stream.SimpleStream
2424
import za.co.absa.cobrix.spark.cobol.utils.FileUtils
@@ -39,7 +39,7 @@ import java.io.IOException
3939
*/
4040
class FileStreamer(filePath: String, hadoopConfig: Configuration, startOffset: Long = 0L, maximumBytes: Long = 0L) extends SimpleStream {
4141

42-
private val logger = Logger.getLogger(FileStreamer.this.getClass)
42+
private val logger: Logger = LoggerFactory.getLogger(this.getClass)
4343

4444
private val hadoopPath = new Path(filePath)
4545
private var byteIndex = startOffset

0 commit comments

Comments
 (0)