{"id":18725807,"url":"https://github.com/cryptix720/naoz","last_synced_at":"2026-04-09T21:32:51.953Z","repository":{"id":57308043,"uuid":"155470282","full_name":"Cryptix720/Naoz","owner":"Cryptix720","description":"Naoz is a  bantamweight logging library for Windows, macOS and Linux.","archived":false,"fork":false,"pushed_at":"2018-11-05T15:48:15.000Z","size":162,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T03:47:35.766Z","etag":null,"topics":["ecmascript6","filesystem","google","javascript","linux","logging","naoz","node","nodejs","universal","windows"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cryptix720.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-30T23:33:41.000Z","updated_at":"2018-11-02T10:16:52.000Z","dependencies_parsed_at":"2022-08-31T06:51:37.007Z","dependency_job_id":null,"html_url":"https://github.com/Cryptix720/Naoz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cryptix720%2FNaoz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cryptix720%2FNaoz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cryptix720%2FNaoz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cryptix720%2FNaoz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cryptix720","download_url":"https://codeload.github.com/Cryptix720/Naoz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239592976,"owners_count":19664855,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ecmascript6","filesystem","google","javascript","linux","logging","naoz","node","nodejs","universal","windows"],"created_at":"2024-11-07T14:12:04.581Z","updated_at":"2026-04-09T21:32:51.916Z","avatar_url":"https://github.com/Cryptix720.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n![alt Naoz](https://github.com/Cryptix720/Naoz/blob/master/logo.png)\n\n[![Known Vulnerabilities](https://snyk.io/test/github/Cryptix720/naoz/badge.svg)](https://snyk.io/test/github/Cryptix720/naoz)\n![Dependencies](https://david-dm.org/Cryptix720/Naoz.svg)\n\n\n\n\n\n[![https://nodei.co/npm/naoz.png?downloads=true\u0026downloadRank=true\u0026stars=true](https://nodei.co/npm/naoz.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://www.npmjs.com/package/naoz)\n\n# Naoz\n\n\n\n## About\nNaoz is a  bantamweight logging library for Windows, macOS and Linux.\nAnd a universal logging library that combines the simple APIs.\n\n\n\n## USAGE\n\n\nNaoz has 10 different levels of severity levels and tags:\n```js\n  Levels:  'Fatal', 'Error', 'Warn', 'Info', 'None', 'Debug', 'Critical', 'Low', 'Medium', 'High'\n  Tags: 'NONE :', 'INFO : ', 'WARN : ', 'ERROR : ', 'FATAL : ', 'CRITICAL :', 'LOW :', 'MEDIUM :', 'DEBUG :', 'HIGH :'\n  \n  //BETA TEST:   Customize your own Classification level \n\n  Clasif: 'UNCLASSIFIED', 'CONFIDENTIAL', 'SECRET', 'TOP_SECRET'\n  \n   ``` \nEvery log levels has its own method on the logging instance. You can set the maximum log level on a Naoz at runtime. \n\nBy default, a naoz writes to STDOUT, but given a writeable file path, it will log directly to a file.\n\n```js\n\n\n\n    var naoz = require('./naoz').createNaozLog(); // logs to STDOUT\n    var naoz = require('./naoz').createNaozLog('test.log'); // logs to a file\n\n```\n### Customization:\n\nYou can simply customize the methods by changing `formatLevel()`, `formatTag()` etc.. .\n\n```js\n    naoz.formatLevel = function(level, date, message) {\n      return date.getTime().toString() + \"; \" + message;\n    };\n    naoz.debug('message');\n    //=\u003e 1276365362167;  message\n```\n### Logging:\n\nAny of the logging methods take `n` arguments, which are each joined by ' ' (similar to `console.log()`). \nIf an argument is not a string, it is stringified by `uti.inspect()`\n\n```js\n    naoz.info('loading an array', [1,2,3], 'now!');\n    //=\u003e info [Sat Jun 12 2018 01:12:05 GMT-0400 (EDT)]  loading an array [ 1, 2, 3, [length]: 3 ] now!\n    naoz.debug('this wont be logged by Naoz');\n    //=\u003e false\n    naoz.setLevel('debug');\n    naoz.debug('Naoz will logg it now');\n    //=\u003e debug [Sat Jun 12 2018 01:12:54 GMT-0400 (EDT)]  Naoz will logg it now.\n\n```\n    \n## Contributing [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/Cryptix720/Naoz/issues)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptix720%2Fnaoz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptix720%2Fnaoz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptix720%2Fnaoz/lists"}