Commit 03fd832e authored by Jeffrey Wilcke's avatar Jeffrey Wilcke

Merge pull request #139 from fjl/feature/simpler-log-system

Update for new ethlog.LogSystem interface
parents 3976b52e 0a99719a
......@@ -2,7 +2,6 @@ package main
import (
"encoding/json"
"fmt"
"os"
"strconv"
......@@ -18,16 +17,8 @@ type plugin struct {
Path string `json:"path"`
}
func (gui *Gui) Println(v ...interface{}) {
gui.printLog(fmt.Sprintln(v...))
}
func (gui *Gui) Printf(format string, v ...interface{}) {
gui.printLog(fmt.Sprintf(format, v...))
}
// Print function that logs directly to the GUI
func (gui *Gui) printLog(s string) {
// LogPrint writes to the GUI log.
func (gui *Gui) LogPrint(level ethlog.LogLevel, msg string) {
/*
str := strings.TrimRight(s, "\n")
lines := strings.Split(str, "\n")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment