An adapter for Scrib for writing local log file

Usage no npm install needed!

<script type="module">
  import scribLocal from '';



An adapter for Scrib to write logs into a log file.

npm install scrib scrib-local --save
var Scrib = require("scrib"),
    logger = new Scrib({
        "local": {
            file: "./data/log.txt"
    }, function(e) {
        if(e) throw e;
        logger.put("Message", { 42: true }, 3, "MSG", "Logs");
        logger.put("Message2", { node: "up" }, 0, "MSG_2", "Logs");

Then your log file will look like:

[Thu, 01 Aug 2013 19:21:41 GMT] 3 MSG (Logs): Message {"42":true}
[Thu, 01 Aug 2013 19:21:41 GMT] 0 MSG_2 (Logs): Message2 {"node":"up"}


  • file: A path relative to your current file to the log file

Testing Build Status

git clone git://
cd scrib-local
npm install
npm test

Licensed under the MIT License.