The root object returned via require()
is this function
The four main classes are available as keys on that main function.
logsDir
is your logs directory, defaulting to './logs/' (can also be specified by the
THEHELPLOGSDIR environment variable or udpated directly)
setupLogs
sets up winston
with colorful, formatted console logging as well as a
file appropriate to the process type. Files are of the form
'worker-2014-04-28T03-04:03.232Z-32706.log' in the this.logsDir
directory.
getLogFilename
might still be useful if you're not using winston
for your logging.
_timestampForPath
makes toISOString()
timestamps safe for filenames.
index
Pulls in everything needed for use via npm.