Skip to content

SeTar-Bot/Logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@setar/logger

Utility Logger Module Created by Setar

Features

  • Connecting to Sentry for Errors
  • Connecting to Discord Webhooks
  • Creating Custom Log File
  • Same as original console, accepting mutli arguments

Documentation

Whole Lib documents are rendered and available in docs folder.

Config

pass this object to setup your own Logger

{
    /**
     * Enable to Log to the default javascript console
     */
    console?: boolean,

    /**
     * DSN Url to Sentry Log Errors
     */
    dsn?: string,
    
    /**
     * WebhookClient to Send Data
     */
    webhook?: WebhookClient,

    /**
     * a name for Log file
     * 
     * @example
     * 'mylogger'
     */
    file?: string,

    /**
     * a path to save Log file
     * 
     * @example 
     * `/home/Documents/my-app/`
     */
    path?: string

    /**
     * an Extension so for the log file
     * 
     * @example
     * `txt`
     */
    extension?: string
}

About

a Logger Module with Mutli Features

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published