diff --git a/_site/content/posts/modules/logging.md b/_site/content/posts/modules/logger.md similarity index 67% rename from _site/content/posts/modules/logging.md rename to _site/content/posts/modules/logger.md index 544cd701..23280a4b 100644 --- a/_site/content/posts/modules/logging.md +++ b/_site/content/posts/modules/logger.md @@ -1,5 +1,5 @@ --- -title: "Logging" +title: "Logger" date: 2018-06-16T14:22:18-07:00 draft: false --- @@ -9,14 +9,14 @@ Displays the contents of the WTF log file. To log to this file in your own modules: ```golang -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 ```bash -wtf/logging/ +wtf/logger/ ``` ## Required ENV Variables @@ -30,7 +30,7 @@ Arrow keys scroll through the log file. ## Configuration ```yaml -textfile: +logger: enabled: true position: top: 5 @@ -44,6 +44,10 @@ textfile: `enabled`
Determines whether or not this module is executed and if its data displayed onscreen.
+**Note:** If you're using logging and logging is _disabled_, your logs +will still be written to file, the widget just won't be shown onscreen. +If you have `logger.Log` calls in your code, regardless of this setting, +they will be written out.
Values: `true`, `false`. `position`
diff --git a/_site/themes/hyde-hyde/layouts/partials/sidebar.html b/_site/themes/hyde-hyde/layouts/partials/sidebar.html index 9c7e92f2..a4b57457 100644 --- a/_site/themes/hyde-hyde/layouts/partials/sidebar.html +++ b/_site/themes/hyde-hyde/layouts/partials/sidebar.html @@ -38,7 +38,7 @@ - + diff --git a/docs/404.html b/docs/404.html index abc09821..4d13885f 100644 --- a/docs/404.html +++ b/docs/404.html @@ -79,7 +79,7 @@ - + diff --git a/docs/categories/index.html b/docs/categories/index.html index 959cb245..a1b78469 100644 --- a/docs/categories/index.html +++ b/docs/categories/index.html @@ -81,7 +81,7 @@ - + diff --git a/docs/index.html b/docs/index.html index 99975824..6e6839fa 100644 --- a/docs/index.html +++ b/docs/index.html @@ -80,7 +80,7 @@ - + diff --git a/docs/index.xml b/docs/index.xml index 4249f027..ef8eec45 100644 --- a/docs/index.xml +++ b/docs/index.xml @@ -12,17 +12,16 @@ - Logging - https://wtfutil.com/posts/modules/logging/ + Logger + https://wtfutil.com/posts/modules/logger/ Sat, 16 Jun 2018 14:22:18 -0700 - https://wtfutil.com/posts/modules/logging/ + https://wtfutil.com/posts/modules/logger/ 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") Source Code wtf/logging/ Required ENV Variables None. +require "github.com/senorprogrammer/wtf/logger" logger.Log("This is a log entry") Source Code wtf/logger/ Required ENV Variables None. Keyboard Commands Arrow keys scroll through the log file. -Configuration textfile:enabled:trueposition:top:5left:4height:2width:1refreshInterval:1 Attributes enabled Determines whether or not this module is executed and if its data displayed onscreen. Values: true, false. -position Defines where in the grid this module’s widget will be displayed. +Configuration logger:enabled:trueposition:top:5left:4height:2width:1refreshInterval:1 Attributes enabled Determines whether or not this module is executed and if its data displayed onscreen. Note: If you’re using logging and logging is disabled, your logs will still be written to file, the widget just won’t be shown onscreen. diff --git a/docs/posts/configuration/attributes/index.html b/docs/posts/configuration/attributes/index.html index 45f00e4b..28c189dd 100644 --- a/docs/posts/configuration/attributes/index.html +++ b/docs/posts/configuration/attributes/index.html @@ -79,7 +79,7 @@ - + diff --git a/docs/posts/configuration/index.html b/docs/posts/configuration/index.html index 24262a30..7ff5e7ff 100644 --- a/docs/posts/configuration/index.html +++ b/docs/posts/configuration/index.html @@ -79,7 +79,7 @@ - + diff --git a/docs/posts/configuration/iterm2/index.html b/docs/posts/configuration/iterm2/index.html index ad673ae2..6f027bb9 100644 --- a/docs/posts/configuration/iterm2/index.html +++ b/docs/posts/configuration/iterm2/index.html @@ -79,7 +79,7 @@ - + diff --git a/docs/posts/glossary/index.html b/docs/posts/glossary/index.html index 67d7d7f9..d97e4c30 100644 --- a/docs/posts/glossary/index.html +++ b/docs/posts/glossary/index.html @@ -79,7 +79,7 @@ - + diff --git a/docs/posts/index.html b/docs/posts/index.html index f7df2293..902ea1b2 100644 --- a/docs/posts/index.html +++ b/docs/posts/index.html @@ -81,7 +81,7 @@ - + @@ -107,7 +107,7 @@