diff options
| author | PliablePixels <pliablepixels@gmail.com> | 2015-08-11 15:47:11 -0400 |
|---|---|---|
| committer | PliablePixels <pliablepixels@gmail.com> | 2015-08-11 15:47:11 -0400 |
| commit | a09333e8b97a5f5c71331ce18777889510aed302 (patch) | |
| tree | 9f6b69e4996088ee13004c3bee6ea9d5f57e89db /www/lib/filelogger/README.md | |
| parent | 68af457b04b26e26f0414b821dabe7359e18a0ad (diff) | |
API auth tied into ZM auth, enabled client to work in both auth and non-auth mode honoring ZM's auth system
Diffstat (limited to 'www/lib/filelogger/README.md')
| -rw-r--r-- | www/lib/filelogger/README.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/www/lib/filelogger/README.md b/www/lib/filelogger/README.md index b1e3c20f..e0e29aa3 100644 --- a/www/lib/filelogger/README.md +++ b/www/lib/filelogger/README.md @@ -68,6 +68,14 @@ Wrapper for $fileLogger.log('error', ...) You can set the local filename (default messages.log). It requests one parameter, the filename (type string). +### $fileLogger.setTimestampFormat(format, timezone) + +You can customize the timestamp format using [Angular <code>date</code> filter](https://docs.angularjs.org/api/ng/filter/date). See formatting parameters on the linked Angular docs page. Example: + +```js +$fileLogger.setTimestampFormat('medium'); +``` + ### $fileLogger.getLogfile() You can read the whole logfile from the filestore. This method returns a promise. |
