src/Pure/General/output.scala
author blanchet
Sun, 29 Jun 2014 21:07:53 +0200
changeset 57436 995f7ebd50ae
parent 56831 e3ccf0809d51
child 57453 77d13a98f1c8
permissions -rw-r--r--
removed non-existing MaSh component from list

/*  Title:      Pure/General/output.ML
    Author:     Makarius

Isabelle channels for diagnostic output.
*/

package isabelle


object Output
{
  def warning_text(msg: String): String = cat_lines(split_lines(msg).map("### " + _))
  def error_text(msg: String): String = cat_lines(split_lines(msg).map("*** " + _))

  def writeln(msg: String) { Console.err.println(msg) }
  def warning(msg: String) { Console.err.println(warning_text(msg)) }
  def error_message(msg: String) { Console.err.println(error_text(msg)) }
}