code: function configure(opts) {
  		if (!opts) opts = {}
  		var result = {
  			filename: writeStream ? writeStream.filename : null,
  			stdout: writeToStdoutEnabled,
  			file: !!writeStream,
  			streamOpts: cloner.clone(streamOpts)
  		}
  		if (opts) {
  			if (opts.stdout != null) writeToStdoutEnabled = opts.stdout
  			if (opts.streamOpts) streamOpts = opts.streamOpts
  			if (opts.file != null) {
  				if (opts.file) {
  					if (!writeStream) writeStream = new rotatedstream.RotatedStream(streamOpts)
  						.once('error', streamErrorListener)
  				} else if (writeStream) close()
  			}
  		}
  
  		return result
  	}
docs: /*
  Configure rotatedlogger
  opts: optional object
  .streamOpts: optional object: options for RotatedStream
  .stdout: optional boolean, default true