{"maintainers":[{"name":"anonymous","email":"marcelrieger@me.com"}],"keywords":["jquery-plugin","logger","namespace","child logger","parent logger","line numbers"],"dist-tags":{"latest":"0.4.3"},"author":{"name":"Marcel Rieger","email":"marcelrieger@icloud.com"},"description":"A simple but powerful logging plugin for jQuery with namespaces.","readme":"# jQuery.Logger\n\nA simple but powerful logging plugin for jQuery with namespaces.\n\n\n## Examples\n\n##### Create a (global) logger and log something:\n\n```javascript\nvar logger = $.Logger();\n\n/**\n * simply log something\n */\nlogger.debug(\"my first log\");\n// => [2015-03-16 14:38:55.817] DEBUG - global - my first log\n\n/*\n * disable, log and enable again\n */\nlogger.disable();\nlogger.debug(\"another log\");\n// nothing happens\nlogger.enable();\n\n/**\n * set the level\n */\nlogger.level(\"info\");\nlogger.debug(\"foo bar\");\n// nothing happens\nlogger.info(\"but this time\");\n// => [2015-03-16 14:38:56.193] INFO - global - but this time\n\n\n/**\n * show name and namespace\n */\nlogger.name();\n// => \"global\"\nlogger.namespace();\n// => \"global\";\n```\n\n\n##### Create a child logger:\n\n```javascript\nvar myLogger = $.Logger(\"foo\");\n\n/**\n * simply log something\n */\nmyLogger.info(\"foo's first log\");\n// => [2015-03-16 14:38:56.602] INFO - foo - foo's first log\n\n\n/**\n * show parentage using the (global) logger defined above\n */\nmyLogger.parent() == logger;\n// => true\n\n// logger.child(\"foo\") == myLogger;\n// => true\n\n```\n\n\n##### Configuration\n\n```javascript\n// configure $.Logger _before_ you create any logger instance\n// (these are the default options)\n$.Logger({\n  // name of the global namespace\n  global: \"global\",\n\n  // delimitter that seperates namespaces\n  delimitter: \".\",\n\n  // use appropriate console logging methods instead of the standard log method,\n  useConsoleMethods: true,\n\n  // show namespaces in logs\n  showNamespace: true,\n\n  // show timestamps in logs\n  showTimestamp: true,\n\n  // experimental\n  // show file name and line number of the origin\n  showOrigin: true,\n  \n  // experimental\n  // cut query string from origin\n  cutQuery: true\n});\n```\n\n\n## API\n\n* **`$.Logger([namespace|options])`**\n    > If `options` are passed, the logger options are extended and the `$.Logger` object is returned. If a `namespace` is passed, a new logger instance with that namespace is created and returned. When no argument is given, the global logger is returned. Logger parentage is built automatically. A namespace consists of a number of logger names seperated by a delimitter. Example: namespace `\"foo.bar\"` => logger `\"global\"` -> logger `\"foo\"` -> logger `\"bar\"`. **Note** that the global namespace (`\"global\"` in this example) is always prepended.\n\n* `namespace()`\n    > Returns the `namespace`.\n    \n* `name()`\n    > Returns the `name`.\n    \n* `parent()`\n    > Returns the parent logger, or `null` when invoked on the global logger.\n\n* `children()`\n    > Return all child loggers mapped to their names.\n\n* `child(name)`\n    > Return a child logger given by `name`.\n\n* `enabled()`\n    > Returns the state of the logger.\n\n* `enable()`\n    > Enable the logger and all its child loggers.\n\n* `disable()`\n    > Disable this and all its child loggers.\n\n* `level([level])`\n    > When `level` is given, the log level is set to that value. Possible values: `\"all\"`, `\"debug\"`, `\"info\"`, `\"warning\"`, `\"error\"`, `\"fatal\"`. When no argument is passed, the current log level is returned.\n\n* `levels()`\n    > Returns all valid log levels mapped to their numerical representation.\n\n* `options()`\n    > Returns the current options.\n\n* `log(level, ...)`\n    > Log `arguments` with a given `level`.\n\n* `all | debug | info | warning | error | fatal(...)`\n    > Shorthands that wrap around `log` for specific levels.\n\n* `originOffset([offset])`, *experimental*\n    >  The context that invoked a log (the *origin*) is determined by parsing the stack trace of a newly created error instance. The first few lines in that stack describe the internal invocation queue of this plugin. In the current implementation, the 5th line is the one that caused the actual log. However, in some cases (e.g. when logging a deprecation warning) it is useful to see the origin of an earlier invocation in the queue. This can be achieved by setting `originOffset` to a numerical value that is added to the stack line index (5th line -> `4`) for the next log. After that, the offset is reset to `0` again.\n\n    > When `offset` is given, the origin offset is set to that value. When no argument is passed, the current origin offset is returned.\n\n\n\n# Development\n\n- Source hosted at [GitHub](https://github.com/riga/jquery.logger)\n- Report issues, questions, feature requests on\n[GitHub Issues](https://github.com/riga/jquery.logger/issues)\n\n\n# License\n\n[MIT](http://www.opensource.org/licenses/mit-license).\n\n\n# Authors\n\nMarcel R. ([riga](https://github.com/riga))","repository":{"type":"git","url":"https://github.com/riga/jquery.logger.git"},"bugs":{"url":"https://github.com/riga/jquery.logger/issues"},"license":"MIT","versions":{"0.3.0":{"name":"jquery-logger","version":"0.3.0","author":{"name":"Marcel Rieger","email":"marcelrieger@icloud.com"},"description":"A simple but powerful logging plugin for jQuery with namespaces.","keywords":["jquery-plugin","logger","namespace","child logger","parent logger","line numbers"],"repository":{"type":"git","url":"https://github.com/riga/jquery.logger.git"},"license":"GPL","gitHead":"fc1294642c72de99f7a041ce64f9f94be75a1cfe","bugs":{"url":"https://github.com/riga/jquery.logger/issues"},"homepage":"https://github.com/riga/jquery.logger","_id":"jquery-logger@0.3.0","scripts":{},"_shasum":"c303f7d288e9a80e9cb30832645bdf6493c7fe43","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"anonymous","email":"marcelrieger@me.com"},"maintainers":[{"name":"anonymous","email":"marcelrieger@me.com"}],"dist":{"shasum":"c303f7d288e9a80e9cb30832645bdf6493c7fe43","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/jquery-logger/-/jquery-logger-0.3.0.tgz","integrity":"sha512-wk9rZSMlziZDpBxNhFd7S37pF8IbXont6rn1GqFKOZBd1Xwhi1fwTdE22Zyei0bXp1wSywI6D3qtqGDfrPUh9Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnjv/7H73yEx3ZZiFsbs4a8F8ImlfND/mvS3XJlJx3bQIhAOqNr2Wk5wWn9XA/lqGRczDUe9PXX+++4rtpQPHiALTL"}]}},"0.3.1":{"name":"jquery-logger","version":"0.3.1","author":{"name":"Marcel Rieger","email":"marcelrieger@icloud.com"},"description":"A simple but powerful logging plugin for jQuery with namespaces.","keywords":["jquery-plugin","logger","namespace","child logger","parent logger","line numbers"],"repository":{"type":"git","url":"https://github.com/riga/jquery.logger.git"},"license":"GPL","gitHead":"b234b86f1b905ff955e925a9550051a4b1a199c8","bugs":{"url":"https://github.com/riga/jquery.logger/issues"},"homepage":"https://github.com/riga/jquery.logger","_id":"jquery-logger@0.3.1","scripts":{},"_shasum":"e308d8bd978113a50044513e086831ee44dc6fe7","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"anonymous","email":"marcelrieger@me.com"},"maintainers":[{"name":"anonymous","email":"marcelrieger@me.com"}],"dist":{"shasum":"e308d8bd978113a50044513e086831ee44dc6fe7","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/jquery-logger/-/jquery-logger-0.3.1.tgz","integrity":"sha512-9U3k5uF2KNzVTgoaR+wAE0AitC7cPWt4KD2zNZhstqp7OAss8OEe/iQ+W/OjsGDHIctzOf2cCNum0CAJOHJ+1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6F1ffVEVmlPX4s+tCnaXrovN735spsbzCXh2BAI1mDAIgaaYKIT2zWsYaTUOzSwE4puF/BalCceWRyC4YhoS+xPg="}]}},"0.3.2":{"name":"jquery-logger","version":"0.3.2","author":{"name":"Marcel Rieger","email":"marcelrieger@icloud.com"},"description":"A simple but powerful logging plugin for jQuery with namespaces.","keywords":["jquery-plugin","logger","namespace","child logger","parent logger","line numbers"],"repository":{"type":"git","url":"https://github.com/riga/jquery.logger.git"},"license":"GPL","gitHead":"95087cd9869fa5412388484aa6d6c6ef1be75fd5","bugs":{"url":"https://github.com/riga/jquery.logger/issues"},"homepage":"https://github.com/riga/jquery.logger","_id":"jquery-logger@0.3.2","scripts":{},"_shasum":"703b0d15f6da0fd465c493ae4b022604b5217f99","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"anonymous","email":"marcelrieger@me.com"},"maintainers":[{"name":"anonymous","email":"marcelrieger@me.com"}],"dist":{"shasum":"703b0d15f6da0fd465c493ae4b022604b5217f99","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/jquery-logger/-/jquery-logger-0.3.2.tgz","integrity":"sha512-ICYju5RTEo6zq2ZuQmZTyQBs8G6cJZsNzj5e+5qgjUC3k/InUduMil2+K8B954uqRC90VeBI1DQkGMlEwm67+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDh+7f3Bae1u4Jz7D/QhsOXs0V0dDKwXhkOeYd4LFGlKgIgK0ROAF9w45heBHICjhangngxujDmOR7EWiOD2jzgB1E="}]}},"0.3.3":{"name":"jquery-logger","version":"0.3.3","author":{"name":"Marcel Rieger","email":"marcelrieger@icloud.com"},"description":"A simple but powerful logging plugin for jQuery with namespaces.","keywords":["jquery-plugin","logger","namespace","child logger","parent logger","line numbers"],"repository":{"type":"git","url":"https://github.com/riga/jquery.logger.git"},"license":"GPL","gitHead":"b31121eec495dbf7234305ec9e4805390f9b788d","bugs":{"url":"https://github.com/riga/jquery.logger/issues"},"homepage":"https://github.com/riga/jquery.logger","_id":"jquery-logger@0.3.3","scripts":{},"_shasum":"6f1bdb83f92a169b1ef37c6cf6ea85477f06e43a","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"anonymous","email":"marcelrieger@me.com"},"maintainers":[{"name":"anonymous","email":"marcelrieger@me.com"}],"dist":{"shasum":"6f1bdb83f92a169b1ef37c6cf6ea85477f06e43a","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/jquery-logger/-/jquery-logger-0.3.3.tgz","integrity":"sha512-qCanR1b01Dcu0gAaBoGf3O2G4WWEuEUJDGX5tjw0LJv6Cfxm+yPX94FIABNpHfaIp0ZtCPefKhO8kIj61iBcGA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAhsthLk4hhWCZabB9YlQQwd5iPfYUlfX25tgJSqlOI+AiEA0tMFYwPUggLtPqqwvp9GwumXA9xZ1Q3iRYkV/jPIcHo="}]}},"0.4.0":{"name":"jquery-logger","version":"0.4.0","author":{"name":"Marcel Rieger","email":"marcelrieger@icloud.com"},"description":"A simple but powerful logging plugin for jQuery with namespaces.","keywords":["jquery-plugin","logger","namespace","child logger","parent logger","line numbers"],"repository":{"type":"git","url":"https://github.com/riga/jquery.logger.git"},"license":"MIT","gitHead":"3c59e33b6b7d2b7bbaa8f541dc865a4b903c232f","bugs":{"url":"https://github.com/riga/jquery.logger/issues"},"homepage":"https://github.com/riga/jquery.logger","_id":"jquery-logger@0.4.0","scripts":{},"_shasum":"2f860aaf551f5f31c4381a771246dd7bf75fb3de","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"anonymous","email":"marcelrieger@me.com"},"maintainers":[{"name":"anonymous","email":"marcelrieger@me.com"}],"dist":{"shasum":"2f860aaf551f5f31c4381a771246dd7bf75fb3de","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/jquery-logger/-/jquery-logger-0.4.0.tgz","integrity":"sha512-dGd5as1TeCbGhHzB9O7IWhOAwrOw7FYlYtmLvI3gQmelr4IlVKgBUpZ1h1I4iWZyYZlOXdfxEbMvS0t/9QyBHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCHRgFiUy9QJT0aqExOQDzCl30CJezf64ynWoBO1X9v3QIgK9+775R/etpIWgiK21CPDQHNM11GivP4OaMqJdW9O3U="}]}},"0.4.1":{"name":"jquery-logger","version":"0.4.1","author":{"name":"Marcel Rieger","email":"marcelrieger@icloud.com"},"description":"A simple but powerful logging plugin for jQuery with namespaces.","keywords":["jquery-plugin","logger","namespace","child logger","parent logger","line numbers"],"repository":{"type":"git","url":"https://github.com/riga/jquery.logger.git"},"license":"MIT","gitHead":"7a75a9fc675ca2de1b51821231ad1cd5a2a250bc","bugs":{"url":"https://github.com/riga/jquery.logger/issues"},"homepage":"https://github.com/riga/jquery.logger","_id":"jquery-logger@0.4.1","scripts":{},"_shasum":"d419654decc4ae5f878d5d692d26938273f5043d","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"anonymous","email":"marcelrieger@me.com"},"maintainers":[{"name":"anonymous","email":"marcelrieger@me.com"}],"dist":{"shasum":"d419654decc4ae5f878d5d692d26938273f5043d","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/jquery-logger/-/jquery-logger-0.4.1.tgz","integrity":"sha512-fr+p4v64jkAt7UGDfjOJYe4BTFpwHwv/LPUo7Xc8cfJd1eHTT0vH8qD6wm+SaEEvyXKRg7/Qwi8YQkv4lSZ7nA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGGX8DRNKpgrvOhT7KNTziAkwqRQbKMM9iIR1WIpB8zSAiEA9y0GKmqFOSeiqwoWBSzlZsshWH5zave6mVnFcWTrGEA="}]}},"0.4.3":{"name":"jquery-logger","version":"0.4.3","author":{"name":"Marcel Rieger","email":"marcelrieger@icloud.com"},"description":"A simple but powerful logging plugin for jQuery with namespaces.","keywords":["jquery-plugin","logger","namespace","child logger","parent logger","line numbers"],"repository":{"type":"git","url":"https://github.com/riga/jquery.logger.git"},"license":"MIT","gitHead":"6f9495be452addfb05f8501c518ded502a7da1e4","bugs":{"url":"https://github.com/riga/jquery.logger/issues"},"homepage":"https://github.com/riga/jquery.logger","_id":"jquery-logger@0.4.3","scripts":{},"_shasum":"2f30e6232864348c4b895b3594c460a1d5131640","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"anonymous","email":"marcelrieger@me.com"},"maintainers":[{"name":"anonymous","email":"marcelrieger@me.com"}],"dist":{"shasum":"2f30e6232864348c4b895b3594c460a1d5131640","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/jquery-logger/-/jquery-logger-0.4.3.tgz","integrity":"sha512-qopdBkBdwVZIPmkYcrOlskWgDK71MUcZRsWH4bJpXVKQc8bv6AfuVyDsjXneHwjYw3x/7qMbuL4YkJJVaB9oHQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGbFE42Nz9tnxzQ0Npa/ngtFRuAV4GhKCI7rqXxweltQAiEA7J3QZEq5YJ7yNDXrFPJDsCKjGKstyAcDIkhmgcfy2ns="}]}}},"name":"jquery-logger","time":{"modified":"2022-06-19T05:06:44.378Z","created":"2015-04-16T13:44:33.985Z","0.3.0":"2015-04-16T13:44:33.985Z","0.3.1":"2015-04-16T14:35:16.892Z","0.3.2":"2015-04-16T14:52:27.659Z","0.3.3":"2015-04-16T17:24:21.866Z","0.4.0":"2015-04-17T06:59:20.532Z","0.4.1":"2015-04-17T10:39:07.759Z","0.4.3":"2015-04-28T10:22:01.696Z"},"readmeFilename":"README.md","homepage":"https://github.com/riga/jquery.logger"}