Skip to content

Commit

Permalink
Export level names to JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahgerweck committed Mar 16, 2018
1 parent 8ffdfc8 commit bfd3174
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/shared/src/main/scala/org/log4s/LogLevel.scala
Expand Up @@ -6,6 +6,7 @@ import js.annotation._
/** A severity level that can be assigned to log statements. */
sealed trait LogLevel {
/** The name of this log level. It is spelled with initial capitals */
@JSExport
def name: String = this.toString

/** The name of the SLF4J method that does logging at this level */
Expand Down

0 comments on commit bfd3174

Please sign in to comment.