diff options
author | Sean E. Russell <ser@ser1.net> | 2020-06-07 16:40:03 -0500 |
---|---|---|
committer | Sean E. Russell <ser@ser1.net> | 2020-06-07 16:56:19 -0500 |
commit | b20f47738953c9f2a1c3e483976104bc3cbfcbba (patch) | |
tree | 192ea9d205d8e3c041c8b31d865e8364cb0a4b6f /logging/logging.go | |
parent | b13fd2833c081d6d187b80d7d43f358e9e7d2009 (diff) |
linting & documentationv4.0.0
Updated versioning and dates for release.
Diffstat (limited to 'logging/logging.go')
-rw-r--r-- | logging/logging.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/logging/logging.go b/logging/logging.go index 7bc1f9e..5195b82 100644 --- a/logging/logging.go +++ b/logging/logging.go @@ -15,6 +15,10 @@ const ( LOGFILE = "errors.log" ) +// New creates a new logger in the default cache directory; the returned +// WriteCloser should be closed when the program exits. If an error is +// encountered during file creation, a nil WriteCloser and appropriate +// error are returned. func New(c gotop.Config) (io.WriteCloser, error) { // create the log directory cache := c.ConfigDir.QueryCacheFolder() |