logged.scala

来自「JAVA 语言的函数式编程扩展」· SCALA 代码 · 共 41 行

SCALA
41
字号
/*                     __                                               *\**     ________ ___   / /  ___     Scala API                            ****    / __/ __// _ | / /  / _ |    (c) 2003-2006, LAMP/EPFL             ****  __\ \/ /__/ __ |/ /__/ __ |                                         **** /____/\___/_/ |_/____/_/ | |                                         ****                          |/                                          **\*                                                                      */// $Id: Logged.scala 8949 2006-10-11 22:02:11Z michelou $package scala.util.logging/** <p> *    Mixing in the class <code>Logged</code> indicates that a class provides *    support for logging. For instance, the developer of a library writes *  </p> *  <pre> *    <b>class</b> MyClass <b>with</b> Logged { /* do stuff, call log */ } *  </pre> *  <p> *    The user of the library instantiates: *  </p> *  <pre> *    <b>val</b> x = <b>new</b> MyClass() <b>with</b> ConsoleLogger *  </pre> *  <p> *    and the logging will be sent to the <a href="../../Console$object.html" *    target="contentFrame"><code>Console</code></a> object. *  </p> */trait Logged {  /** This method should log the message given as argument somewhere   *  as a side-effect.   *   *  @param msg ...   */  def log(msg: String): Unit = {}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?