Logging
+Logger
@@ -123,10 +123,10 @@
+
+
Displays the contents of the WTF log file.
To log to this file in your own modules:
-require "github.com/senorprogrammer/wtf/logging"
- logging.Log("This is a log entry")
require "github.com/senorprogrammer/wtf/logger"
+ logger.Log("This is a log entry")
Source Code
-wtf/logging/
wtf/logger/
Required ENV Variables
None.
@@ -136,7 +136,7 @@Arrow keys scroll through the log file.
Configuration
-textfile:
+logger:
enabled: true
position:
top: 5
diff --git a/docs/posts/modules/newrelic/index.html b/docs/posts/modules/newrelic/index.html
index 1330419d..9c8efc6a 100644
--- a/docs/posts/modules/newrelic/index.html
+++ b/docs/posts/modules/newrelic/index.html
@@ -79,7 +79,7 @@
- IPInfo
- Jenkins
- Jira
- - Logging
+ - Logger
- New Relic
- OpsGenie
- Power
diff --git a/docs/posts/modules/opsgenie/index.html b/docs/posts/modules/opsgenie/index.html
index 67e5f02f..68adac50 100644
--- a/docs/posts/modules/opsgenie/index.html
+++ b/docs/posts/modules/opsgenie/index.html
@@ -79,7 +79,7 @@
- IPInfo
- Jenkins
- Jira
- - Logging
+ - Logger
- New Relic
- OpsGenie
- Power
diff --git a/docs/posts/modules/power/index.html b/docs/posts/modules/power/index.html
index 088d69d0..a3920eb7 100644
--- a/docs/posts/modules/power/index.html
+++ b/docs/posts/modules/power/index.html
@@ -79,7 +79,7 @@
- IPInfo
- Jenkins
- Jira
- - Logging
+ - Logger
- New Relic
- OpsGenie
- Power
diff --git a/docs/posts/modules/prettyweather/index.html b/docs/posts/modules/prettyweather/index.html
index 703ddad6..a402000e 100644
--- a/docs/posts/modules/prettyweather/index.html
+++ b/docs/posts/modules/prettyweather/index.html
@@ -79,7 +79,7 @@
- IPInfo
- Jenkins
- Jira
- - Logging
+ - Logger
- New Relic
- OpsGenie
- Power
diff --git a/docs/posts/modules/security/index.html b/docs/posts/modules/security/index.html
index d53bf968..94f6dc86 100644
--- a/docs/posts/modules/security/index.html
+++ b/docs/posts/modules/security/index.html
@@ -79,7 +79,7 @@
- IPInfo
- Jenkins
- Jira
- - Logging
+ - Logger
- New Relic
- OpsGenie
- Power
diff --git a/docs/posts/modules/textfile/index.html b/docs/posts/modules/textfile/index.html
index 0f25da96..b7e7c38f 100644
--- a/docs/posts/modules/textfile/index.html
+++ b/docs/posts/modules/textfile/index.html
@@ -79,7 +79,7 @@
- IPInfo
- Jenkins
- Jira
- - Logging
+ - Logger
- New Relic
- OpsGenie
- Power
diff --git a/docs/posts/modules/todo/index.html b/docs/posts/modules/todo/index.html
index 7cec31de..a19cc891 100644
--- a/docs/posts/modules/todo/index.html
+++ b/docs/posts/modules/todo/index.html
@@ -79,7 +79,7 @@
- IPInfo
- Jenkins
- Jira
- - Logging
+ - Logger
- New Relic
- OpsGenie
- Power
diff --git a/docs/posts/modules/weather/index.html b/docs/posts/modules/weather/index.html
index 4e8af80c..63955ad9 100644
--- a/docs/posts/modules/weather/index.html
+++ b/docs/posts/modules/weather/index.html
@@ -79,7 +79,7 @@
- IPInfo
- Jenkins
- Jira
- - Logging
+ - Logger
- New Relic
- OpsGenie
- Power
diff --git a/docs/posts/overview/index.html b/docs/posts/overview/index.html
index 05cf5186..4f95593b 100644
--- a/docs/posts/overview/index.html
+++ b/docs/posts/overview/index.html
@@ -79,7 +79,7 @@
- IPInfo
- Jenkins
- Jira
- - Logging
+ - Logger
- New Relic
- OpsGenie
- Power
diff --git a/docs/sitemap.xml b/docs/sitemap.xml
index 99e7b0f9..6d153749 100644
--- a/docs/sitemap.xml
+++ b/docs/sitemap.xml
@@ -3,7 +3,7 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
- https://wtfutil.com/posts/modules/logging/
+ https://wtfutil.com/posts/modules/logger/
2018-06-16T14:22:18-07:00
diff --git a/docs/tags/index.html b/docs/tags/index.html
index 9de5bb91..6e9ff15b 100644
--- a/docs/tags/index.html
+++ b/docs/tags/index.html
@@ -81,7 +81,7 @@
- IPInfo
- Jenkins
- Jira
- - Logging
+ - Logger
- New Relic
- OpsGenie
- Power
diff --git a/logger/log.go b/logger/log.go
index 7c594520..05cdbbec 100644
--- a/logger/log.go
+++ b/logger/log.go
@@ -21,7 +21,7 @@ type Widget struct {
func NewWidget() *Widget {
widget := Widget{
- TextWidget: wtf.NewTextWidget(" Logs ", "logging", true),
+ TextWidget: wtf.NewTextWidget(" Logs ", "logger", true),
filePath: logFilePath(),
}
diff --git a/wtf.go b/wtf.go
index 3c89731e..62d89883 100644
--- a/wtf.go
+++ b/wtf.go
@@ -193,7 +193,7 @@ func addWidget(app *tview.Application, pages *tview.Pages, widgetName string) {
Widgets = append(Widgets, jenkins.NewWidget())
case "jira":
Widgets = append(Widgets, jira.NewWidget())
- case "logging":
+ case "logger":
Widgets = append(Widgets, logger.NewWidget())
case "newrelic":
Widgets = append(Widgets, newrelic.NewWidget())