Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

logcafe

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logcafe

LogCafe.js is a logging framework to support browser application logging. (amd-style and node.js support)

  • 0.6.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

logcafe.js

About

LogCafe.js is a logging framework to support browser application logging. (amd-style and node.js support)

Usage (node.js)

$ node
> var LogCafe = require('logcafe');
> var logCafe = new LogCafe();

> var conf = { // configure
...     level: 'DEBUG',
...     separator: ', '
... };

> logCafe.setConfigure(conf); // set configure
{ loggers: {},
  config: { level: 'DEBUG', separator: ', ' } }

> var log = logCafe.getLogger('logcafe'); // set Logger
> log.info('logger succesfully got', 'test'); // output log
[info][logcafe] logger succesfully got, test (......:xx:yy)

Usage (browser)

var logCafe = new LogCafe();

var conf = { // configure
    level: 'DEBUG',
    separator: ', '
};

logCafe.setConfigure(conf); // set configure

var log = logCafe.getLogger('logcafe'); // set Logger

log.info('logger succesfully got', 'test'); // output log

>> [info][logcafe] logger succesfully got, test (......:xx:yy)

Configure

{
    level: 'DEBUG', // OFF|TRACE|DEBUG|INFO|WARN|ERROR
    separator: ', ' // Consolidation of argument, it is a separator.
    excludes: [] // Exclude category forward match
}

Operating environment

  • node.js
  • require.js
  • browser

Build

dependence) node.js

$ npm install .

$ make

Test (browser)

$ open ./spec/all.html

Test (node.js)

$ npm install . # deps install
$ make test

info: checking node_modules.
if [ ! -d ./node_modules ]; then npm install .; else exit 0; fi

info: testing start.
./node_modules/mocha/bin/mocha test/

  [info][logcafe] logger succesfully got (/Users/fkei/repos/logcafe.js/test/test.logcafe.js:28:17)
․

  1 test complete (16 ms)

AUTHORS

Kei FUNAGAYAMA

  • https://github.com/fkei
  • https://twitter.com/fkei

Kazuma MISHIMAGI

CyberAgent Publicity

Changelog

@see https://github.com/CyberAgent/logcafe.js/blob/master/Changelog

CyberAgent, Inc. All rights reserved.

License

MIT @see https://github.com/CyberAgent/logcafe.js/blob/master/LICENSE

Keywords

FAQs

Package last updated on 16 Oct 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc