Merge pull request #100 from crquan/patch-1
make sure no trailing spaces
diff --git a/README.md b/README.md
index 32f6dee..abccd84 100644
--- a/README.md
+++ b/README.md
@@ -33,7 +33,7 @@
With the default `log.Formatter = new(logrus.TextFormatter)` when a TTY is not
attached, the output is compatible with the
-[l2met](http://r.32k.io/l2met-introduction) format:
+[logfmt](http://godoc.org/github.com/kr/logfmt) format:
```text
time="2014-04-20 15:36:23.830442383 -0400 EDT" level="info" msg="A group of walrus emerges from the ocean" animal="walrus" size=10
diff --git a/entry.go b/entry.go
index e164eec..17fe6f7 100644
--- a/entry.go
+++ b/entry.go
@@ -126,6 +126,10 @@
}
}
+func (entry *Entry) Warning(args ...interface{}) {
+ entry.Warn(args...)
+}
+
func (entry *Entry) Error(args ...interface{}) {
if entry.Logger.Level >= ErrorLevel {
entry.log(ErrorLevel, fmt.Sprint(args...))
diff --git a/terminal_notwindows.go b/terminal_notwindows.go
index 276447b..80edd32 100644
--- a/terminal_notwindows.go
+++ b/terminal_notwindows.go
@@ -3,7 +3,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build linux,!appengine darwin freebsd
+// +build linux,!appengine darwin freebsd openbsd
package logrus
diff --git a/terminal_openbsd.go b/terminal_openbsd.go
new file mode 100644
index 0000000..d238bfa
--- /dev/null
+++ b/terminal_openbsd.go
@@ -0,0 +1,8 @@
+
+package logrus
+
+import "syscall"
+
+const ioctlReadTermios = syscall.TIOCGETA
+
+type Termios syscall.Termios