Guest User

Untitled

a guest
Nov 24th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. /**
  2. * Build logger stream configuration by type, for 'file' and 'rotate'
  3. * additionally save a log for error levels.
  4. * @private
  5. * @param {string} type - Supported types are 'file', 'rotate' and 'stream'
  6. * if it's not specified or is false the stream will disabled
  7. * @param {object} options - the parameters for define a stream
  8. * @param {string} [options.name] - An optional instance name of alert `emailStream`
  9. * @param {(boolean|object|string[])} [options.alerts] - if `alerts` is `true` and `alertsEmails`...
  10. * @param {object} options.config - server configuration with logger options, see {@link Logger#setup}
  11. * @returns {object} logger streams configuration
  12. */
  13. function myFunction(type, options = {}) {
  14.  
  15.  
  16. }
Add Comment
Please, Sign In to add comment