[Pkg-javascript-commits] [node-ain2] 06/102: Fix broken references to `init()`, this changed to `set()` in 8fa275e.
Jonas Smedegaard
js at moszumanska.debian.org
Tue Apr 29 11:59:45 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository node-ain2.
commit 007bde3fb03742c07b39076e374a4c3c0c121fa5
Author: Mark Wubben <mark at novemberborn.net>
Date: Thu Dec 9 14:11:35 2010 +0100
Fix broken references to `init()`, this changed to `set()` in 8fa275e.
---
index.js | 4 ++--
readme.md | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/index.js b/index.js
index 6471294..a47ca64 100644
--- a/index.js
+++ b/index.js
@@ -130,7 +130,7 @@ SysLogger.prototype.setHostname = function(hostname) {
};
/**
- * Get new instance of SysLogger. All arguments is similar as `init`
+ * Get new instance of SysLogger. All arguments is similar as `set`
* @returns {SysLogger}
*/
SysLogger.prototype.get = function() {
@@ -223,5 +223,5 @@ SysLogger.prototype.assert = function(expression) {
};
var logger = new SysLogger();
-logger.init();
+logger.set();
module.exports = logger;
\ No newline at end of file
diff --git a/readme.md b/readme.md
index 87651ee..53410da 100644
--- a/readme.md
+++ b/readme.md
@@ -89,8 +89,8 @@ your messages.
You can set `facility` by `String` or `Number`:
- logger.init('node-test-app', 3);
- logger.init('node-test-app', 'daemon');
+ logger.set('node-test-app', 3);
+ logger.set('node-test-app', 'daemon');
Also you can set `TAG`, `Facility` and `HOSTNAME` separatelly by `setTag`,
`setFacility` and `setHostname` functions. All of them is chainable too.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-ain2.git
More information about the Pkg-javascript-commits
mailing list