{"_id":"logg","_rev":"33-9d1f0a7e98a8d5f97b9c37e38c45f813","name":"logg","description":"Logging library that allows for hierarchical loggers, multiple log levels, and flexible watching of log records.","dist-tags":{"latest":"0.3.4"},"versions":{"0.1.0":{"name":"logg","version":"0.1.0","description":"Logging library that allows for hierarchical loggers, multiple log levels, and flexible watching of log records.","keywords":["log","logging","logger","hierarchical","handler","watcher"],"repository":{"type":"git","url":"git://github.com/dpup/node-logg.git"},"homepage":"https://github.com/dpup/node-logg","author":{"name":"Daniel Pupius","email":"dan@pupi.us","url":"http://pupius.co.uk"},"main":"./lib/logg.js","directories":{"lib":"./lib"},"_npmUser":{"name":"dpup","email":"dan@pupi.us"},"_id":"logg@0.1.0","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.103","_nodeVersion":"v0.5.5","_defaultsLoaded":true,"dist":{"shasum":"a134a4901ec65b77fb8f547a290166bb67d3a714","tarball":"https://registry.npmjs.org/logg/-/logg-0.1.0.tgz","integrity":"sha512-pcYkgcPzyJLqiTBpIjR/oMh4KzzRVmJjMBq2f17fifNu28/VvF3HMXQP0wJ/xXLzMzRtOs6Ucv210nGyOFLheg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/itMUVprxZF0bHZQB32f+SQUT3g9dKZ3ZwLKyE3D5bwIgHwqcTwPpbc06GsB9QEonUqZi2feG7tfG9s7CNfgDt7U="}]},"maintainers":[{"name":"dpup","email":"dan@pupi.us"}]},"0.1.1":{"name":"logg","version":"0.1.1","description":"Logging library that allows for hierarchical loggers, multiple log levels, and flexible watching of log records.","keywords":["log","logging","logger","hierarchical","handler","watcher"],"repository":{"type":"git","url":"git://github.com/dpup/node-logg.git"},"homepage":"https://github.com/dpup/node-logg","author":{"name":"Daniel Pupius","email":"dan@pupi.us","url":"http://pupius.co.uk"},"main":"./lib/logg.js","directories":{"lib":"./lib"},"_npmUser":{"name":"dpup","email":"dan@pupi.us"},"_id":"logg@0.1.1","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.9","_nodeVersion":"v0.6.13","_defaultsLoaded":true,"dist":{"shasum":"e0b315f07160cd29dca171be900d31e2a413a61d","tarball":"https://registry.npmjs.org/logg/-/logg-0.1.1.tgz","integrity":"sha512-+QZIWbAQ0Kmw3gCTM0ZoxkJ9T9wHs+PxY64P5N+dJr5hyESTAsNeogIpNs6tOi9PLzy0YCGejl93OufG6hUs8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVbN5+lt0+62Sg46sTyimmRYNwDwe8Zc1er/cZ4ae0PQIhAKtqwhUV4/CAQZp4EbhtM07qhEkq0TXvGlGtvO8Gr3eU"}]},"maintainers":[{"name":"dpup","email":"dan@pupi.us"}]},"0.1.2":{"name":"logg","version":"0.1.2","description":"Logging library that allows for hierarchical loggers, multiple log levels, and flexible watching of log records.","keywords":["log","logging","logger","hierarchical","handler","watcher"],"repository":{"type":"git","url":"git://github.com/dpup/node-logg.git"},"homepage":"https://github.com/dpup/node-logg","author":{"name":"Daniel Pupius","email":"dan@pupi.us","url":"http://pupius.co.uk"},"main":"./lib/logg.js","directories":{"lib":"./lib"},"_npmUser":{"name":"dpup","email":"dan@pupi.us"},"_id":"logg@0.1.2","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.9","_nodeVersion":"v0.6.13","_defaultsLoaded":true,"dist":{"shasum":"857f12e07ba593f7603b10bdeac75ef645a96967","tarball":"https://registry.npmjs.org/logg/-/logg-0.1.2.tgz","integrity":"sha512-aTKvPRXlVplVgR8x9K5CgnTTyKHeL7kWcr3DDFANoM+nOK4VTUAw0BI580fUuPdeH2/upzxtzWthJIKhqNmRRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDI0t7lO8ikG5hkkRSjS9/SpubwclYRJhmVfGawP3YTMAiBbsNoM8nym25kUSB+3OYmRqMJWg4W2PJFMjzXfERtNsw=="}]},"maintainers":[{"name":"dpup","email":"dan@pupi.us"}]},"0.1.3":{"name":"logg","version":"0.1.3","description":"Logging library that allows for hierarchical loggers, multiple log levels, and flexible watching of log records.","keywords":["log","logging","logger","hierarchical","handler","watcher"],"repository":{"type":"git","url":"git://github.com/dpup/node-logg.git"},"homepage":"https://github.com/dpup/node-logg","author":{"name":"Daniel Pupius","email":"dan@pupi.us","url":"http://pupius.co.uk"},"main":"./lib/logg.js","directories":{"lib":"./lib"},"_npmUser":{"name":"dpup","email":"dan@pupi.us"},"_id":"logg@0.1.3","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.9","_nodeVersion":"v0.6.13","_defaultsLoaded":true,"dist":{"shasum":"aa64d88459d8d0157f4f457adc2a61e7675abd22","tarball":"https://registry.npmjs.org/logg/-/logg-0.1.3.tgz","integrity":"sha512-KrREwFGn74D4WwS4DQ3uYU7qV7j9m4eEBvcK+9EOYSalxCfZbY8cMMkOyekr9qvO3B1LyRp/LlCH4wwJvQlyaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/0ofaPsyi0mBH1B6NpoLe3q2zc0ui6EntK51z/bPB9wIhAMyppB/K9bFpLOsTxIyatez2yZih5HkIq9veut/azmMk"}]},"maintainers":[{"name":"dpup","email":"dan@pupi.us"}]},"0.1.4":{"name":"logg","version":"0.1.4","description":"Logging library that allows for hierarchical loggers, multiple log levels, and flexible watching of log records.","keywords":["log","logging","logger","hierarchical","handler","watcher"],"repository":{"type":"git","url":"git://github.com/dpup/node-logg.git"},"homepage":"https://github.com/dpup/node-logg","author":{"name":"Daniel Pupius","email":"dan@pupi.us","url":"http://pupius.co.uk"},"main":"./lib/logg.js","directories":{"lib":"./lib"},"_npmUser":{"name":"dpup","email":"dan@pupi.us"},"_id":"logg@0.1.4","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.9","_nodeVersion":"v0.6.13","_defaultsLoaded":true,"dist":{"shasum":"fad5829643a99ad2b25c26b23293dae65937bf89","tarball":"https://registry.npmjs.org/logg/-/logg-0.1.4.tgz","integrity":"sha512-B1l3Gv+td04Zg9TCTlQDDNnX0ySQ2hiN/jmx6/IyZ/CMG96MbT2v8ADSgMAZ1Tvth0LlsXxxwBPtaVNBBwAKdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDipOoNrloPLp7+jUGGp3Mdbt/I0swCo99ffmB8HMUyWAIgT3ksWWtX7bqMpAPqnPBXytEks+YozHoqpqoVuEd9XCM="}]},"maintainers":[{"name":"dpup","email":"dan@pupi.us"}]},"0.2.0":{"name":"logg","version":"0.2.0","description":"Logging library that allows for hierarchical loggers, multiple log levels, and flexible watching of log records.","keywords":["log","logging","logger","hierarchical","handler","watcher"],"repository":{"type":"git","url":"http://github.com/dpup/node-logg.git"},"homepage":"https://github.com/dpup/node-logg","author":{"name":"Daniel Pupius","email":"dan@pupi.us","url":"http://pupius.co.uk"},"main":"./lib/logg.js","directories":{"lib":"./lib"},"_id":"logg@0.2.0","dist":{"shasum":"3c4f089691647d27ab3d407c7e8df715c0e0f045","tarball":"https://registry.npmjs.org/logg/-/logg-0.2.0.tgz","integrity":"sha512-8540fOAvUT4qcT+M6rWTxeXb0+D8rA7Hd2ctylSuDLIfTaw7nbezFsVFhtlDfn67Su32EjzF2auRFcv3FVoMUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJQ3kwi5eFcxNHAjmI3MBNHvy52/0dXsCMYGN0F8UxlQIhAM/gAjDunaqRfUvmzwpazxzfIdvHDA2OTxeOe2ZZs/MR"}]},"_from":".","_npmVersion":"1.2.17","_npmUser":{"name":"dpup","email":"dan@pupi.us"},"maintainers":[{"name":"dpup","email":"dan@pupi.us"}]},"0.2.1":{"name":"logg","version":"0.2.1","description":"Logging library that allows for hierarchical loggers, multiple log levels, and flexible watching of log records.","keywords":["log","logging","logger","hierarchical","handler","watcher"],"repository":{"type":"git","url":"http://github.com/dpup/node-logg.git"},"homepage":"https://github.com/dpup/node-logg","author":{"name":"Daniel Pupius","email":"dan@pupi.us","url":"http://pupius.co.uk"},"main":"./lib/logg.js","directories":{"lib":"./lib"},"_id":"logg@0.2.1","dist":{"shasum":"0cc4639365348b9fa9c3513e83fa8d67c35345b5","tarball":"https://registry.npmjs.org/logg/-/logg-0.2.1.tgz","integrity":"sha512-ifcaMktHDIKV0tmGTamlr2buzihfTyLC3XBIRDn2+CDbaemi7TVFTxCgrj1hrWOZOTpdjKtuUy6DRj7JJUa2kg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEvym9GSmvoZqhraYrPKAfQAUs6Oe8W1xrf1FFvDSpRNAiAOCvWB5yE60ZdK5KmruCnNJnQuqQkAILcU3JHRw1++CA=="}]},"_from":".","_npmVersion":"1.2.17","_npmUser":{"name":"dpup","email":"dan@pupi.us"},"maintainers":[{"name":"dpup","email":"dan@pupi.us"}]},"0.2.2":{"name":"logg","version":"0.2.2","description":"Logging library that allows for hierarchical loggers, multiple log levels, and flexible watching of log records.","keywords":["log","logging","logger","hierarchical","handler","watcher"],"repository":{"type":"git","url":"http://github.com/dpup/node-logg.git"},"homepage":"https://github.com/dpup/node-logg","author":{"name":"Daniel Pupius","email":"dan@pupi.us","url":"http://pupius.co.uk"},"main":"./lib/logg.js","directories":{"lib":"./lib"},"_id":"logg@0.2.2","dist":{"shasum":"cd78f8d2e0ef965c2171d158f1ba03b18465cc3a","tarball":"https://registry.npmjs.org/logg/-/logg-0.2.2.tgz","integrity":"sha512-eKHvu4EBodWHoYy2hMRBcsyrRjdHQOm1zKGjnSweQMGj+tZ9e0qdsWKLkpgaTNxgw/nq1Z6wTQfy2VD2EwQsFw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFhZYq6fAjkMrOAPQ6NtdkjVinDHZLyNo1V4hPfiPoYQIgfDRCKVxGtDdSpnNVTDQgHCC5Bg9y5/ZjQU7FXOrm/wU="}]},"_from":".","_npmVersion":"1.2.17","_npmUser":{"name":"dpup","email":"dan@pupi.us"},"maintainers":[{"name":"dpup","email":"dan@pupi.us"}]},"0.3.0":{"name":"logg","version":"0.3.0","description":"Logging library that allows for hierarchical loggers, multiple log levels, and flexible watching of log records.","keywords":["log","logging","logger","hierarchical","handler","watcher"],"repository":{"type":"git","url":"http://github.com/dpup/node-logg.git"},"homepage":"https://github.com/dpup/node-logg","author":{"name":"Daniel Pupius","email":"dan@pupi.us","url":"http://pupius.co.uk"},"main":"./lib/logg.js","directories":{"lib":"./lib"},"bugs":{"url":"https://github.com/dpup/node-logg/issues"},"_id":"logg@0.3.0","dist":{"shasum":"1a9605230936baabe2f9c128b5ebb21c8744f371","tarball":"https://registry.npmjs.org/logg/-/logg-0.3.0.tgz","integrity":"sha512-aO6TxeA4uBXmH7mN0jMmcSQUol9SdW7w7NVM+jwzjoU7JLo2r0hyQEmhiLNPXYDjgTeG5GgUugSl9NAaBzEVuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB4PjTwFYxdmZbKNP3KHICTuwfyNveTJRXQPyy5CshnQAiEA97IrNP+PGT4vIDAVjD6SQG3fn2bQMywvpZWKOFVH950="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"dpup","email":"dan@pupi.us"},"maintainers":[{"name":"dpup","email":"dan@pupi.us"}]},"0.3.1":{"name":"logg","version":"0.3.1","description":"Logging library that allows for hierarchical loggers, multiple log levels, and flexible watching of log records.","keywords":["log","logging","logger","hierarchical","handler","watcher"],"repository":{"type":"git","url":"http://github.com/dpup/node-logg.git"},"homepage":"https://github.com/dpup/node-logg","author":{"name":"Daniel Pupius","email":"dan@pupi.us","url":"http://pupius.co.uk"},"main":"./lib/logg.js","directories":{"lib":"./lib"},"devDependencies":{"nodeunit":"0.9.0"},"scripts":{"test":"nodeunit lib/*_test.js"},"gitHead":"a00c42f10c19a92145b1f337baadcb5780e17460","bugs":{"url":"https://github.com/dpup/node-logg/issues"},"_id":"logg@0.3.1","_shasum":"3c50314d8da969b971b84ffd823ad52dfa7c0454","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.2","_npmUser":{"name":"dpup","email":"dan@pupi.us"},"maintainers":[{"name":"dpup","email":"dan@pupi.us"}],"dist":{"shasum":"3c50314d8da969b971b84ffd823ad52dfa7c0454","tarball":"https://registry.npmjs.org/logg/-/logg-0.3.1.tgz","integrity":"sha512-F/7/+f7BOrtKBJ6B1O4tMdSUYNuKQHqTdtf1K+wFyCGGyxvZWXJ4v1SthvVMVIUKNzbuMsw6yPKVZabZgHQQEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEQMSySbxDXHwClYTAaKbDmtz2EtuNMLtWkkIV7D5SY0AiEA6TuMl4zN0qADg3XbtZTd8Btpa+KOgdf7XqHIlSa9wjg="}]}},"0.3.2":{"name":"logg","version":"0.3.2","description":"Logging library that allows for hierarchical loggers, multiple log levels, and flexible watching of log records.","keywords":["log","logging","logger","hierarchical","handler","watcher"],"repository":{"type":"git","url":"git+ssh://git@github.com/dpup/node-logg.git"},"homepage":"https://github.com/dpup/node-logg","author":{"name":"Daniel Pupius","email":"dan@pupi.us","url":"http://pupius.co.uk"},"main":"./lib/logg.js","directories":{"lib":"./lib"},"devDependencies":{"nodeunit":"0.9.0"},"scripts":{"test":"nodeunit lib/*_test.js"},"gitHead":"4b09629481e3f0060bf34f1e07e9f67a5fdae024","bugs":{"url":"https://github.com/dpup/node-logg/issues"},"_id":"logg@0.3.2","_shasum":"b4b95e8173fadb0180d391f27b02c75599ed9265","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.1","_npmUser":{"name":"nicks","email":"nicholas.j.santos@gmail.com"},"maintainers":[{"name":"dpup","email":"dan@pupi.us"},{"name":"nicks","email":"nicholas.j.santos+npm@gmail.com"}],"dist":{"shasum":"b4b95e8173fadb0180d391f27b02c75599ed9265","tarball":"https://registry.npmjs.org/logg/-/logg-0.3.2.tgz","integrity":"sha512-oigJFfaFM3RMehcloxELvufT0aknsejwZCvuXV/vK9VRc8ihgerb5jXbv5Z1/7tXQLEWxESsfPeC/IxE01ZezA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqQwKOj2gsYT+Y+vh2IKvCIShbHcSgTKIHIlc+XYC1mwIhAL0dQz0HjR1KtlkG0nKQOqkFIwExwCR8FxOKn0Ue9RMs"}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/logg-0.3.2.tgz_1460501477236_0.23131170123815536"}},"0.3.3":{"name":"logg","version":"0.3.3","description":"Logging library that allows for hierarchical loggers, multiple log levels, and flexible watching of log records.","keywords":["log","logging","logger","hierarchical","handler","watcher"],"repository":{"type":"git","url":"git+ssh://git@github.com/dpup/node-logg.git"},"homepage":"https://github.com/dpup/node-logg","author":{"name":"Daniel Pupius","email":"dan@pupi.us","url":"http://pupius.co.uk"},"main":"./lib/logg.js","directories":{"lib":"./lib"},"devDependencies":{"nodeunit":"0.9.0"},"scripts":{"test":"nodeunit lib/*_test.js"},"gitHead":"a9f8c15582dc0ec6666834cdfe678d536be5563a","bugs":{"url":"https://github.com/dpup/node-logg/issues"},"_id":"logg@0.3.3","_shasum":"ab9f7e4d83fd544186e1af260ee7141855c67bd0","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.1","_npmUser":{"name":"nicks","email":"nicholas.j.santos@gmail.com"},"maintainers":[{"name":"dpup","email":"dan@pupi.us"},{"name":"nicks","email":"nicholas.j.santos+npm@gmail.com"}],"dist":{"shasum":"ab9f7e4d83fd544186e1af260ee7141855c67bd0","tarball":"https://registry.npmjs.org/logg/-/logg-0.3.3.tgz","integrity":"sha512-hpHN7E/Fuh+lbIrjaHJTeGj1RYr1dkEQhSbrXJjza31V3IIX3UjAx21+o20XxV/znxrTXg+31YtDmOYZFwvSUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBY9dmu2MOxbaqVWijNTQG52iLRT4aoLc3wi52qLSDVYAiEAuYBnvdUvi9F3ZcZZLSnoknRS7Sm52rWEiT53GvKeK2U="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/logg-0.3.3.tgz_1460504433258_0.8536336412653327"}},"0.3.4":{"name":"logg","version":"0.3.4","description":"Logging library that allows for hierarchical loggers, multiple log levels, and flexible watching of log records.","keywords":["log","logging","logger","hierarchical","handler","watcher"],"repository":{"type":"git","url":"git+ssh://git@github.com/dpup/node-logg.git"},"homepage":"https://github.com/dpup/node-logg","author":{"name":"Daniel Pupius","email":"dan@pupi.us","url":"http://pupius.co.uk"},"main":"./lib/logg.js","directories":{"lib":"./lib"},"devDependencies":{"nodeunit":"0.9.0"},"scripts":{"test":"nodeunit lib/*_test.js"},"gitHead":"6c7f00f99422c796b7d82f1dca0c1a294b24f953","bugs":{"url":"https://github.com/dpup/node-logg/issues"},"_id":"logg@0.3.4","_shasum":"9d9967a5a5fc0dbbf382806b509417d281c60975","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.1","_npmUser":{"name":"nicks","email":"nicholas.j.santos@gmail.com"},"maintainers":[{"name":"dpup","email":"dan@pupi.us"},{"name":"nicks","email":"nicholas.j.santos+npm@gmail.com"}],"dist":{"shasum":"9d9967a5a5fc0dbbf382806b509417d281c60975","tarball":"https://registry.npmjs.org/logg/-/logg-0.3.4.tgz","integrity":"sha512-puIwC39Y8y4hbWQ8MZWfVj3Fvjr/nsyjraPml2yMTUhdWT/ylBkyxVAFIYxBasI6X7yH07LX9SH2BTOcqs7Cxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIED4bF11OWYxNcmrAD47hrqge1OGa08T6yhUzTE3V4khAiBa1GYKCtGMyprjkbab2NotRVrMxFw8T2Lg2e9/3urGwg=="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/logg-0.3.4.tgz_1460595816320_0.3130798761267215"}}},"maintainers":[{"email":"nicholas.j.santos+npm@gmail.com","name":"nicks"},{"email":"dan@pupi.us","name":"dpup"}],"time":{"modified":"2022-06-19T13:51:20.730Z","created":"2011-11-02T20:19:58.646Z","0.1.0":"2011-11-02T20:20:00.244Z","0.1.1":"2012-07-24T19:51:46.397Z","0.1.2":"2012-07-25T00:08:44.066Z","0.1.3":"2012-07-26T17:34:42.606Z","0.1.4":"2012-07-26T21:06:33.468Z","0.2.0":"2013-04-24T23:51:02.219Z","0.2.1":"2013-06-07T19:05:38.954Z","0.2.2":"2013-08-20T00:01:28.680Z","0.3.0":"2014-03-10T15:51:56.812Z","0.3.1":"2015-09-14T23:21:01.782Z","0.3.2":"2016-04-12T22:51:20.172Z","0.3.3":"2016-04-12T23:40:34.932Z","0.3.4":"2016-04-14T01:03:39.440Z"},"author":{"name":"Daniel Pupius","email":"dan@pupi.us","url":"http://pupius.co.uk"},"repository":{"type":"git","url":"git+ssh://git@github.com/dpup/node-logg.git"},"users":{"fgribreau":true,"retorillo":true},"readme":"# Node-Logging\n\nThis is a logging library for use with [node.js](http://nodejs.org/).  It decouples log reporting from publishing and is based on the [Java API](http://download.oracle.com/javase/1.4.2/docs/api/java/util/logging/Logger.html).\n\n## Installation\n\nFork the latest source from github.\n\nor\n\n`npm install logg`\n\n## Usage\n\nCall `getLogger(name)` with the name of your class, namespace, or made up identifier.\n\nLoggers expose `fine()`, `info()`, `warn()`, `error()` and `log(level, args)`.  These logging methods take variable arguments and will call `sys.inspect` on any objects that are passed.  There is special handling for Error objects.\n\n    var logging = require('logg');\n\n    var logger = logging.getLogger('my.class');\n    logger.setLogLevel(logging.Level.WARN);\n    logger.info('This will not show up');\n    logger.warn('But warnings will', new Error('aargg'));\n\nLoggers are arranged in a hierarchy based on their names, separated by dots.  Log reporting levels are inherited based on the hierarchy, INFO being the default level.  For example, the following will silence everything but errors within the `subproject` namespace:\n\n    var a = logging.getLogger('project.subproject.foo');\n    var b = logging.getLogger('project.subproject.bar');\n    var c = logging.getLogger('project.subproject.baz');\n    var d = logging.getLogger('project.subproject.bam');\n\n    logging.getLogger('project.subproject').setLogLevel(logging.Level.SEVERE);\n\nEvery logger can have watchers associated with it, which will get called with a log record.  Usually you'd just want to attach to root logger.\n\n    logging.registerWatcher(function(logRecord) {\n      // Don't use sync API in real life...\n      fs.writeFileSync('logs.log', JSON.stringify(logRecord) + '\\n');\n    });\n\nA default watcher is automatically registered which outputs to the console.\n\n## API\n\n### logg.getLogger(name)\n\n* *name* **string** The logger's name using dot nottation.\n\nWill create a new Logger instance and return it.\n\n### logg.registerWatcher(callback)\n\n* *callback* **Function(LogRecord)** The callback of the watcher.\n\nAttach a listener on the root logger capturing all log messages. This is legacy and sugar for `logg.on('', callback)`.\n\nRead about the callback's argument `LogRecord` in [logg.LogRecord](#logglogrecord).\n\n### logg.on(eventType, callback)\n\n* *eventType* **string** The event type.\n* *callback* **Function(LogRecord)** The callback of the event.\n\nAttach a listener for a specific logger. Read about the events emitted by logg in the [Events Emitted](#events-emitted) section.\n\nRead about the callback's argument `LogRecord` in [logg.LogRecord](#logglogrecord).\n\n### logg.removeListener(eventType, callback)\n\n* *eventType* **string** The event type.\n* *callback* **Function(LogRecord)** The callback of the event.\n\nRemove a listener that was attached using the `on` method.\n\n### logg.removeAllListeners()\n\nRemoves any listeners attached, including ones using the `registerWatcher` method.\n\n### logg.removeConsole()\n\nStop logging to console. By default node-logg will log to the console.\n\n### logg.addConsole()\n\nWill start logging to the console.\n\n### logg.formatRecord(logRecord, optStripColors)\n\n* *logRecord* **logg.LogRecord** The log record Object.\n* *optStripColors* **boolean** Optionally strip colors, default is `false`.\n\n* *Returns* **string** Always string.\n\nCreate a pretty formated message from the log record provided. By default `formatRecord` will return a string containing special codes that color the content. If you want to get the plain text version set the `optStripColors` option to `true`.\n\n### logg.LogRecord\n\nThe logg.LogRecord class is a single log item. It is provided to every log message listener. The properties of a `LogRecord` are:\n\n* **level** *number* The Level of the message (e.g. `100`).\n* **name** *string* The name of the logger emitting the message (e.g. `app.model.apples`).\n* **rawArgs** *Array* An array containing all the arguments passed to the logger.\n* **date** *Date* A Date Object.\n* **message** *string* A concatenation of `rawArgs` with Objects and Arrays expanded.\n\n### logg.Level\n\nThe default logging levels available by node-logg. `logg.Level` is an enumeration of numbers:\n\n```js\nlogg.Level.SEVERE;  // 1000\nlogg.Level.WARN;    // 800\nlogg.Level.INFO;    // 600\nlogg.Level.FINE;    // 400\nlogg.Level.FINER;   // 200\nlogg.Level.FINEST;  // 100\n```\n\n## Events Emitted\n\nnode-logg emits three type of events. All events emitted contain one item, the [logg.LogRecord](#logglogrecord). The event types are:\n\n### The rootLogger\n\nCaptures all messages on the root level that are loggable. The special *rootLogger* emits events using the `''` key (empty string).\n\n```js\nlogg.on('', function(logRecord) { /* ... */});\n```\n\nYou can configure the logging level by using the `setLogLevel` method of the root logger:\n\n```js\nlogg.rootLogger.setLogLevel(logg.Level.INFO);\n```\n\n### The Loggers Events\n\nEvery logger will emit it's own event which will bubble up to the rootLogger. So if a logger is named `app.model.apple` three events will be emitted using these types:\n\n1. `app.model.apple` first emitted event.\n2. `app.model` second emitted event.\n3. `app` third emitted event.\n\nThese type of events will be emitted irrespective of the logging level set.\n\n### The Levels Events\n\nAll messages emit events with their [Level](#logglevel) as the event type. This in effect makes the event-type a number.\n\nThese type of events will be emitted irrespective of the logging level set.\n\n\n## Examples\n\nSet up the node-logg to save messages to syslog for use in production. In this example the [node-syslog](https://github.com/schamane/node-syslog#readme) package is used.\n\n```js\nvar logg = require('logg');\nvar syslog = require('node-syslog');\n\n// setup syslog\nsyslog.init('kickq', syslog.LOG_PID | syslog.LOG_ODELAY, syslog.LOG_LOCAL0);\n\n// do not log to console.\nlogg.removeConsole();\n\n// listen for log messages\nlogg.on('', function(logRecord) {\n\n  // format the message\n  var message = logg.formatRecord(logRecord, true);\n\n  // relay to syslog using LOG_INFO for WARN and above messages\n  // LOG_DEBUG for the test\n  if (logg.Level.WARN <= logRecord.level) {\n    syslog.log(syslog.LOG_INFO, message);\n  } else {\n    syslog.log(syslog.LOG_DEBUG, message);\n  }\n});\n```\n\nDuring development you may want to see all the messages of a specific logger:\n```js\n// this is a debug file...\nvar logg = require('logg');\n\n// display messages to console\nlogg.addConsole();\n\n// set logging level of \"app.model.apple\" to lowest.\nlogg.getLogger('app.model.apple').setLogLevel(logg.Level.FINEST);\n\n```\n\n## Licence\n\nThe MIT License (MIT)\n\nCopyright (c) 2011 Daniel Pupius\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","homepage":"https://github.com/dpup/node-logg","keywords":["log","logging","logger","hierarchical","handler","watcher"],"readmeFilename":"README.md","bugs":{"url":"https://github.com/dpup/node-logg/issues"}}