I am doing a project with spark graphx. i want to log on my codes for tracing, ... i use the below codes for creating logger object.
package org.araz.DAF.GraphAnalysis
import org.apache.spark.graphx._
import org.araz.DAF.{GEdge, GVertex}
import org.slf4j.LoggerFactory
class GraphAnalysis(_graph: Graph[GVertex, GEdge]) {
var graph: Graph[GVertex, GEdge] = _graph
def GetConnectedComponents(_cnt: Int): Array[ConnectedComponents] = {
val logger= LoggerFactory.getLogger(getClass)
val cc = graph.connectedComponents()
logger.info("Info 1")
cc
}
}
when i open the log file, i found more lines rather than "Info 1", more lines of graphx library. spark inner logs. how can i log only my logs and ignore outer libraries log