slack_logger 1.0.1 copy "slack_logger: ^1.0.1" to clipboard
slack_logger: ^1.0.1 copied to clipboard

outdated

A simple dart package to send message to slack channel via slack webhook

Slack Logger #

GitHub stars

Follow Twitter

A simple dart package to send message to slack channel via slack webhook

Usage #

To use this plugin, add slack_logger as a dependency in your pubspec.yaml file.

Steps before using this package #

  • Add Apps to https://api.slack.com/apps/.

  • Go to Incoming Webhook Link and Enable it.

  • Create your slack channel.

  • Create new webhook and link slack channel.

You are good to go now 👍 #

Initialize [SlackLogger] #

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {

    SlackLogger(webhookUrl: "[Add Your Web Hook Url]");

    return MaterialApp(
      ...
    );
  }
}

Send:

final sl = SlackLogger.instance;

...

sl.send("This is a error log to my channel");

...

Feel Free to request any missing features or report issues here.

25
likes
0
pub points
79%
popularity

Publisher

verified publisherdipenmaharjan.com.np

A simple dart package to send message to slack channel via slack webhook

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on slack_logger