 
 # Reset console content
 resetConsoleContent = ->
-  #TODO remove all console.log
-  console.log("resetConsoleContent... will call currentLogger.logWarning")
   currentLogger.logWarning("resetConsoleContent")
   editors.console.setValue("");
   editors.console.selection.clearSelection();


  prefixedLog = (prefix) ->
    (text) ->
      #TODO remove all console.log
      console.log(prefix+": "+text)
      editors.console.selection.clearSelection()
      editors.console.navigateFileEnd()
      editors.console.insert(prefix+": "+text)


  resetConsoleContent()

  currentLogger.logWarning("Main: document ready, prepared console")

  # A hash needs to be set, or we won't be able to load the code
  if not window.location.hash then window.location.hash = "optics"
