Giter Club home page Giter Club logo

logger's Introduction

@daangamesdg/logger

A simple logger you can use to log stuff in the console

Install

yarn add / npm install @daangamesdg/logger

Usage

Basic Usage

import { Logger } from "@daangamesdg/logger";

const logger = new Logger({ name: "name", timestamp: true }); // options: { name: string; timestamp?: boolean (default = true) }
logger.info(anything, you, like);

Extending

/* CustomFormatter.ts */
import { Structure } from "@daangamesdg/logger";

Structure.extend(
	"Formatter",
	(Formatter) =>
		class CustomFormatter extends Formatter {
			// do what ever you want here

			// example
			public test(): void {
				console.log("test");
			}
		}
);

declare module "@daangamesdg/logger" {
	class Formatter {
		test(): void;
	}
}

/* index.ts */
import "absolute/path/to/CustomFormatter";
import { Formatter } from "@daangamesdg/logger";

const formatter = new Formatter().test();
logger.test(); // logs "test"

Note: the examples writting in TypeScript

Author

👤 DaanGamesDG

Lisence

Project is licensed under the © MIT License


logger's People

Contributors

ijskoud avatar renovate-bot avatar

Watchers

 avatar

logger's Issues

[DepShield] (CVSS 8.8) Vulnerability due to usage of minimist:0.1.0

Vulnerabilities

DepShield reports that this application's usage of minimist:0.1.0 results in the following vulnerability(s):


Occurrences

minimist:0.1.0 is a transitive dependency introduced by the following direct dependency(s):

dts-bundle:0.7.3
        └─ detect-indent:0.2.0
              └─ minimist:0.1.0

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

[DepShield] (CVSS 7.4) Vulnerability due to usage of lodash.clonedeep:4.5.0

Vulnerabilities

DepShield reports that this application's usage of lodash.clonedeep:4.5.0 results in the following vulnerability(s):


Occurrences

lodash.clonedeep:4.5.0 is a transitive dependency introduced by the following direct dependency(s):

eslint:7.32.0
        └─ table:6.7.2
              └─ lodash.clonedeep:4.5.0

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (github>whitesource/merge-confidence:beta)

Dependency Dashboard

This issue provides visibility into Renovate updates and their statuses. Learn more

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.


  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.