-
-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tagging on the Log__c record #106
Comments
Hey @CloudJedi - there is a bug for the managed package, #90, to hopefully get that issue resolved. Right now, there is code in the unpackaged metadata that will dynamically assign Topics - for some reason, when running as a managed package, the code successfully creates I'm planning to spend some time on that bug over the next week or two to see if there are any workarounds - I'd really love to get this feature working for the managed package (if possible). |
@jongpie I'm interested to hear any recommendations on the best way to mark a specific log to be related to a specific feature or project so that we can easily filter the logs on the managed package? |
@CloudJedi I'm so sorry for the late response! I somehow overlooked the notification about your last comment! I am still trying to see if it will be possible to get Topics working in the managed package. But one option for your Apex code within the existing managed package version - you can call 1 additional method to provide a stack trace to the logging system - this is something that the unlocked package does automatically, but for the managed package, you have to call an additional method // Assuming you're currently calling the logger like this
Nebula.Logger.debug('your log entry message');
// Chain a method call to parseStackTrace with an instance of `DMLException`, which will then populate the OriginLocation__c log entry field
Nebula.Logger.debug('your log entry message').parseStackTrace(new DmlException().getStackTrace()); If that doesn't quite meet your needs, let me know! I'm trying to wrap up some other changes this week, and then I hope to try a few other ideas to see if I can make Topics work correctly within the managed package. Out of curiosity, would you be able to switch your org to the unlocked package instead of the managed package? You'll get several additional features in the unlocked package, but I'm not sure if your org needs to use the managed package specifically for the namespace. |
@CloudJedi the newest release, v4.6.0, finally provides support for tagging records in the managed package. There's more info in README, but essentially:
Let me know if you have any questions! |
I'm trying to debug a specific apex class and is there a way to easily tag a specific Log__c so that I'll know what it is for?
I noticed the following in the documentation: Assign Topics (Tagging/Labeling System)
I'm actually using the Managed Package to limit the maintenance on client orgs. I'm interested to hear what specific issue is preventing it from being included in the managed package?
The text was updated successfully, but these errors were encountered: