io.radicalbit.flink.pmml.scala.logging.LazyLogging.scala Maven / Gradle / Ivy
The newest version!
/*
* Copyright (C) 2017 Radicalbit
*
* This file is part of flink-JPMML
*
* flink-JPMML is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* flink-JPMML is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with flink-JPMML. If not, see .
*/
package io.radicalbit.flink.pmml.scala.logging
import org.slf4j.LoggerFactory
/** Guarantees lazy logging; it is necessary in order to provide the feature along
* the code also if users employ `scala-2.10` scala version because `scala-logging` is
* no more published.
*
*/
trait LazyLogging {
protected lazy val logger = LoggerFactory.getLogger(getClass.getName)
}