{"id":22770999,"url":"https://github.com/towergame/yatsl","last_synced_at":"2025-04-15T05:29:38.198Z","repository":{"id":44751779,"uuid":"448554069","full_name":"towergame/yatsl","owner":"towergame","description":"Yet Another TypeScript Logger","archived":false,"fork":false,"pushed_at":"2023-12-21T17:01:42.000Z","size":163,"stargazers_count":3,"open_issues_count":13,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T16:21:22.133Z","etag":null,"topics":["logger","logging"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/yatsl","language":"TypeScript","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/towergame.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-16T12:55:43.000Z","updated_at":"2023-01-17T12:39:14.000Z","dependencies_parsed_at":"2024-12-11T16:11:43.265Z","dependency_job_id":"a3d02283-ac69-41ae-bee1-1ab660f5dd88","html_url":"https://github.com/towergame/yatsl","commit_stats":{"total_commits":58,"total_committers":2,"mean_commits":29.0,"dds":"0.017241379310344862","last_synced_commit":"6594f98526a292871979a9d0e0462e2791257726"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/towergame%2Fyatsl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/towergame%2Fyatsl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/towergame%2Fyatsl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/towergame%2Fyatsl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/towergame","download_url":"https://codeload.github.com/towergame/yatsl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249013874,"owners_count":21198476,"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":["logger","logging"],"created_at":"2024-12-11T16:11:38.299Z","updated_at":"2025-04-15T05:29:38.179Z","avatar_url":"https://github.com/towergame.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YATSL ![Test Status](https://github.com/towergame/yatsl/actions/workflows/testing.yml/badge.svg)  \n*(**Y**et **A**nother **T**ype**S**cript **L**ogger)*  \n    \n\n**What is this?**  \nA logger utility that *should* be relatively simple/quick to set up and offers a neat output. It's also not anything fancy, it will not connect to 5 different servers and upload the log to the blockchain or something, but it should be sufficient for debug logging or just in general having an idea what your typescript program is doing.\n\n**Why should I use this?**  \nIt is a simple library for logging that produces and output with all the necessary information you could want, like log level, timestamp and the line of code that produced the message (can be toggled off for production builds via the config). \n\nHere's an example of what the program might output:  \n![Example of the Logger, it is currently saying \"swag yolo\"](https://i.imgur.com/YzfOjCH.png)  \nIt should be noted that the library requires  ANSI code support for your terminal/command line/thing in order to have the pretty formatting. If you don't, however, you should still be able to get a readable output out of it, it just won't have the colours and formatting.\n\n**How do I use it?**  \nThere are two main ways of using this library.  \nOne option is using the default object exported by the library, this is handy if all you need is a thing to call every time you want to log something. Setting this up is simple:\n```ts\nimport { logger } from \"yatsl\";\nlogger.info(\"Hello World!\");\n```\nHowever, if your codebase is larger than a couple scripts, you might want to have a seperate logger object for each file. Luckily, yatsl supports instantiating your own Logger objects like so:\n```ts\nimport { Logger } from \"yatsl\";\nlet logger = new Logger();\nlogger.info(\"Hello World!\");\n```\nThis also allows for a degree of customisation, as you can pass a config object as an argument to the Logger constructor:\n```ts\nimport { Logger } from \"yatsl\";\nlet logger = new Logger({logLine: false});\nlogger.info(\"Hello World!\");\n```\n\nAdditional information on how to better customise the logger can be found on the [wiki](https://github.com/towergame/yatsl/wiki).\n\n**Wow this thing sucks, it doesn't even support \\\u003cXYZ\\\u003e!!**  \nIf you want a feature that is currently missing, feel free to make an issue. Alternatively, if you're up for getting down and dirty yourself, you can always implement the feature yourself and make a pull request.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftowergame%2Fyatsl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftowergame%2Fyatsl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftowergame%2Fyatsl/lists"}