mathew-kurian / Scribe.js

:scroll: Node.js logging made simple! Online access to logs and more...
https://mathew-kurian.github.io/Scribe.js/
MIT License
284 stars 45 forks source link

Choose folder where logs saving #52

Closed estvmachine closed 9 years ago

estvmachine commented 9 years ago

Hi, how can i choose where the 'logs' are saving. I want to save them in AppData, but its seems automacally save in the root of my folder project.

estvmachine commented 9 years ago

I answer myself, when create the object 'scribe' then you have to pass the object options with 'rootPath' with the direction that you want:

var options_scribe=  {rootPath: process.env.HOME+ '/AppData/NAME_YOUR_SOFTWARE/logs' };
var scribe = require('scribe-js')(options_scribe);
guillaumewuip commented 9 years ago

You're right, for more config options have a look in the wiki : https://github.com/bluejamesbond/Scribe.js/wiki/4-%C2%B7-API-%3A-Scribe :)

estvmachine commented 9 years ago

Oh you are right, the wiki says that, but its only one line xd. Anyways thanks for your wonderful job.