Have ideas to improve npm?Join in the discussion! »

    rf-telegram-logger

    1.0.3 • Public • Published

    rf-telegram-logger

    image

    log to the Telegram app!


    usage

    1. Download Telegram, if you don't already have it.
    2. Start a chat with @NodeLoggerBot
    3. Get the id of the chat by typing /chatid
    4. Get a token by typing /token COMING SOON
    const TelegramLogger = require("rf-telegram-logger");
    const telegramLogger = new TelegramLogger({
      name: "log name", // name will show up in the log
      token: "bot token",
      chatid: "chatid" // telegram chatid of where you want it to log to
    });
    
    telegramLogger.log("hello world")
    
    // override log name
    telegramLogger.log("hello world", "alt log name")

    methods

    .log()

    .info()

    .warn()

    .error()

    .debug()

    Install

    npm i rf-telegram-logger

    DownloadsWeekly Downloads

    4

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    4.17 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar