jongpie / NebulaLogger

The most robust observability solution for Salesforce experts. Built 100% natively on the platform, and designed to work seamlessly with Apex, Lightning Components, Flow, Process Builder & integrations.
https://nebulalogger.com
MIT License
705 stars 165 forks source link

Implement a more robust notification system #593

Open Damecek opened 11 months ago

Damecek commented 11 months ago

Package Edition of Nebula Logger

Unlocked Package

Package Version of Nebula Logger

1.5.2

New Bug Summary

Hi,

currently the Configuration of the Slack Plugin is stored in the Custom Metadata Type called Logger Parameter. This brings complications in following cases:

My suggested solution is to store those information in Custom Settings, which are not deployable. Another benefit of this would be that we could publish messages to multiple Slack Channels from single Salesforce environment. Could be useful for example to log System Admin Profile to different channel than the rest of profiles.

jongpie commented 9 months ago

Hi @Damecek! I've been having similar ideas over the last few months, and I think I'm going to...

I've started a prototype of using custom objects, and it'll give me a lot more control & flexibility over how Slack notifications can be setup (including sandboxes with cloned data). I'm hoping to make more progress on this over the next few months.

Damecek commented 9 months ago

What limitations are you talking about? The benefit of custom settings is the hierarchy where different users or profiles can send messages to a different Slack channels. Also, using custom settings will be easier to integrate the slack setup to the current custom setup component.

jongpie commented 9 months ago

There are a couple of issues with using custom settings

By decoupling notification configuration from logging configuration, it'll provide a lot more flexibility.

Damecek commented 9 months ago

Thanks for explaining, it looks like you have everything though through. Definitely looking forward to this upgrade. 🚀

Damecek commented 1 month ago

Hello @jongpie really appreciating your work on this repository. I would like to ask how does it look with the Slack Plugin refactor?

Today I've received a request to send some specific logs to a different channel which is not currently possible. The use case was to separate logs around our SFMC integration to separate SFMC slack channel. This is not possible now, nor it would be easily possible with the Custom Setting I initially suggested. As you said they are too limiting and the Custom Object will be better suitable for this. Ideally we would like to define multiple slack channels per Log Entry. The Log Tags looks like good option, each tag could have it's own slack channel configured.

So I wanted to bring this back to your attention. Thanks in advance.

jongpie commented 1 month ago

Hi @Damecek great question, I should have added a comment on this issue a few months ago with an update:

So I'm definitely planning to implement this eventually, but I'm focusing on other enhancements & bugfixes until FormulaEval is generally available (GA) in Apex.