Node.js library to integrate with the LogMeUp server. http://logmeup.com
LogMeUp is logger software. The difference between LogMeUp and other logging solutions is that with LogMeUp you can view your log files real-time in the web browser all over the world.
This is a Node.js REST api wrapper for LogMeUp Server (http://logmeup.com). Vist http://logmeup.com to learn about setting it up.
npm install logmeup
To create a log file to start logging to, you must create a LogMeUp
If you're developing an app named 'Slick Server' and you worked for the company 'Crab Shack', you might name your app
slickserver and your collection
Creates an instance of a LogMeUp object. Valid input parameters are:
create()method isn't needed if this flag is set.
Creates a log file. Callback parameters:
Deletes a log file. Callback parameters:
Is always set to false after a LogMeUp object is instantiated or created. Once a
create() is called, it's set to true. If
autocreate is set to true, then
create() is implicitly called and
logExists will be set to true. Calling
delete() will set this to false.
Logs data. Data can be a string for an object. Callback isn't necessary, but may be used for troubleshooting. Callback parameters:
var LogMeUp = LogMeUpvar logger = LogMeUp;
true will prevent you from having to call
create() before you start logging.
These methods are asynchronous.
//log some JSONlogger;//log a stringlogger;//optionally: inspect the servers responselogger;
You can create a file named
logmeup.json in the base directory of your application or in the
config/ folder of your app.
The configuration file should look like this:
"host": "yourlogmeupserver.com""port": 7070"collection": "gitpilotllc""app": "server""autocreate": true
//will autoload logmeup.json//this way you can put this at the top of all your modules in your app without having to recreate the logger each timevar logger = default;logger;
MIT License. See LICENSE for complete details.