Replies: 4 comments 13 replies
-
Hi @fentes - glad to hear you're finding Nebula Logger useful in your org! I could see possibly adding this type of functionality to the tool, but it also overlaps a bit with the functionality provided by using the tagging functionality, released in v4.6.0 (see screenshot below). Did you also consider using tags for your purposes? Tags are applied to the I'd love to hear if tags would also work for your purposes, or if there is definitely a need for something like your 'scenario' field. Let me know your thoughts! |
Beta Was this translation helpful? Give feedback.
-
@fentes thanks for follow-up info! I think your approach makes sense as a way to give you what you need right now - I also agree that there is some value in having a field on Once I've had a chance to look into it further, I'll let you know if I ended up adding this natively to the tool! |
Beta Was this translation helpful? Give feedback.
-
Hey, @jongpie we discussed cases where we use the logger and came up with a similar idea. Potentially we will create a lot of logs per day and in most cases, they aren't really relevant to be stored for always. We looked into your Batch Deletion feature. But as far as we understand the feature does delete all logs after x days regardless of whether there is only info, an error, or in which context the log was created. What are your thoughts on setting up multiple retention rules depending on the scenario and included error? For example:
All of the features have an identifier using the scenario field. And then there could be a custom metadata type where you can define a scenario, a retention day, and whether error logs should be skipped. For all logs without any scenario, you can have a default setting. We probably will develop such a feature, but wanted to discuss it with you before. Maybe you say, that it might be relevant in general, then we can find some synergies. |
Beta Was this translation helpful? Give feedback.
-
Hi @jongpie, first I want to express my thanks for this wonderful package. I discussed building something like this myself with a colleague, then he found your package and we decided that this is way more advanced than anything we could've built ourselves :-). This 'scenario' feature is something we are really interested in, because we have a lot of different features that we wanto to be able to distinguish. However, we would also like to be able to change loglevel on a scenario basis. It's now possible (and very handy!) to change the default loglevel that is being saved on a user/profile basis, but for us it would be great if it were possible to do this on a scenario basis as well. So for instance, we have 2 sets of REST classes:
By default, we are only logging WARN+ on our production environment, but it would be great if we could configure that for the 'UserManagement' feature/scenario, we could have INFO+ logs. That would allow for very granular configuration, where we can group code into sets of classes that we can then toggle on-demand. I'm not entirely sure that this is a feature that's part of this PR, would it be possible to extend the use of scenarios into the custom metadata settings? |
Beta Was this translation helpful? Give feedback.
-
Hey,
we introduced NebulaLogger in our Org and are amazed by the easy use. So we use it in many different places. Unfortunately, this leads to the fact that we have a lot of logs and it is, therefore, difficult to find the right log only by the username and the time.
To keep the overview, we changed some lines and introduced a new field "Scenario". The Logger.saveLog() was cloned into Logger.saveLog(String myScenario)
I think this might be quite helpful for others as well ;)
Beta Was this translation helpful? Give feedback.
All reactions