Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ If you are looking for a version compatible with Scala 2.10, check out Scala Log

Scala Logging is published to Sonatype OSS and Maven Central:

- Group id / organization: *com.typesafe.scala-logging*
- Group id / organization: *com.lightbend*
- Artifact id / name: *scala-logging*

sbt users may add this to their `build.sbt`:

```scala
libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.9.2"
libraryDependencies += "com.lightbend" %% "scala-logging" % "3.9.2"
```

## Using Scala Logging

The `Logger` class from the `com.typesafe.scalalogging` package wraps an underlying SLF4J logger.
The `Logger` class from the `com.lightbend.scalalogging` package wraps an underlying SLF4J logger.
In order to create a `Logger`, you pass a name to the `apply` factory method defined in the `Logger` companion object:

```scala
Expand All @@ -68,7 +68,7 @@ Or, using the runtime class wrapped by the implicit class tag parameter:
val logger = Logger[MyClass]
```

The `LazyLogging` and `StrictLogging` traits from the `com.typesafe.scalalogging` package define the `logger` member as
The `LazyLogging` and `StrictLogging` traits from the `com.lightbend.scalalogging` package define the `logger` member as
a lazy or strict value respectively. In both cases the underlying SLF4J logger is named according to the class into which
these traits are mixed:

Expand Down
8 changes: 4 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ scalacOptions ++= Seq(
)
incOptions := incOptions.value.withLogRecompileOnMacro(false)
libraryDependencies ++= Dependencies.scalaLogging(scalaVersion.value)
initialCommands := """|import com.typesafe.scalalogging._
initialCommands := """|import com.lightbend.scalalogging._
|import org.slf4j.{ Logger => Underlying, _ }""".stripMargin

// OSGi

import com.typesafe.sbt.osgi.SbtOsgi
enablePlugins(SbtOsgi)
osgiSettings
OsgiKeys.bundleSymbolicName := "com.typesafe.scala-logging"
OsgiKeys.bundleSymbolicName := "com.lightbend.scala-logging"
OsgiKeys.privatePackage := Seq()
OsgiKeys.exportPackage := Seq("com.typesafe.scalalogging*")
OsgiKeys.exportPackage := Seq("com.lightbend.scalalogging*")

// publishing

organization := "com.typesafe.scala-logging"
organization := "com.lightbend"
licenses := Seq("Apache 2.0 License" -> url("http://www.apache.org/licenses/LICENSE-2.0.html"))
homepage := Some(url("https://github.com/lightbend/scala-logging"))
Test / publishArtifact := false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.typesafe.scalalogging
package com.lightbend.scalalogging

import org.slf4j.{ LoggerFactory, Marker, Logger => Underlying }
import scala.reflect.ClassTag
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.typesafe.scalalogging
package com.lightbend.scalalogging

import org.slf4j.Marker
import scala.reflect.macros.blackbox
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.typesafe.scalalogging
package com.lightbend.scalalogging

import org.slf4j.{ Marker, Logger => Underlying }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.typesafe.scalalogging
package com.lightbend.scalalogging

import org.slf4j.Marker
import scala.reflect.macros.blackbox
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.typesafe.scalalogging
package com.lightbend.scalalogging

import org.slf4j.LoggerFactory

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.typesafe
package com.lightbend

package object scalalogging {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.typesafe.scalalogging
package com.lightbend.scalalogging

import org.mockito.scalatest.MockitoSugar

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.typesafe.scalalogging
package com.lightbend.scalalogging

import org.mockito.scalatest.MockitoSugar
import org.slf4j.{ Logger => Underlying }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.typesafe.scalalogging
package com.lightbend.scalalogging

import org.mockito.scalatest.MockitoSugar

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.typesafe.scalalogging
package com.lightbend.scalalogging

import org.mockito.scalatest.MockitoSugar
import org.slf4j.{ Logger => Underlying }
Expand Down