Skip to content

Commit

Permalink
docs(Readme): update readme content [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ijsblokjeee[bot] authored May 3, 2023
1 parent 046f247 commit 75cecb6
Showing 1 changed file with 11 additions and 27 deletions.
38 changes: 11 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,17 @@
<img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg" />
</a>
</p>
</div>


<a href="https://ijskoud.dev/discord" target="_blank">
<div align="center">
<a href="https://ijskoud.dev/discord" target="_blank">
<img src="https://ijskoud.dev/discord/banner" />
</a>
<br />
<a href="https://vercel.com/?utm_source=snowcrystals&utm_campaign=oss" target="_blank">
<img src="/vercel.svg" width="20%">
</a>
</div>

---
Expand All @@ -24,33 +31,10 @@

## Install

```
npm i @snowcrystals/icicle
yarn add @snowcrystals/icicle
```

The following example is written using TypeScript.
```ts
import { Logger } from "@snowcrystals/icicle";
const icicle = new Logger();
icicle.info("Hello World!"); // 2022-11-25 20:18:33 [INFO] » Hello World!
```

## Options

The following options apply to the `Logger` class.

| Property | Value | Required | Description |
| ------------- | ------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| console | Console | false | The Console for the logs. |
| stdout | NodeJS.WriteStream | false | The WriteStream for the output logs. |
| stderr | NodeJS.WriteStream | false | A WriteStream for the error logs. |
| defaultFormat | LoggerLevelOptions | false | The default options used to fill all the possible values for Format. |
| format | LoggerFormatOptions | false | The options for each log level. LogLevel.None serves to set the default for all keys, where only TimeStamp and Prefix would be overridden. |
| level | LogLevel | false | The minimum log level. |
| join | string | false | The string that joins different messages. |
| depth | number | false | The inspect depth when logging objects. |
```,npm i @snowcrystals/icicle,yarn add @snowcrystals/icicle,```
,The following example is written using TypeScript.,```ts,import { Logger } from "@snowcrystals/icicle";,const icicle = new Logger();,icicle.info("Hello World!"); // 2022-11-25 20:18:33 [INFO] » Hello World!,```

.github/readme_extension.md

## Author

Expand Down

0 comments on commit 75cecb6

Please sign in to comment.