https://github.com/agentgill/logging
Salesforce Logging Framework
https://github.com/agentgill/logging
Last synced: 5 months ago
JSON representation
Salesforce Logging Framework
- Host: GitHub
- URL: https://github.com/agentgill/logging
- Owner: agentgill
- License: gpl-3.0
- Created: 2018-04-04T12:47:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-08-11T09:06:29.000Z (almost 6 years ago)
- Last Synced: 2025-09-12T06:52:53.474Z (10 months ago)
- Language: Apex
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Logging
Salesforce Logging Framework
- Provides full stack dumping and limits report
- Controlled via custom setting
- Includes custom debug, exception debugging out to custom object
# ChangeLog
# Usage
Logging hooks are implemented like this within each class
# Logger Setup - required methods
```
public class myClass(){
public void myMethod(){
Logger.push('myMethod','myClass');
// Somecode
Logger.pop();
}
}
```
Each class/method must include: Logger.push and Logger.pop in order to caputre logs for the entire class stack
# Logging Custom Exception - capturing exceptions
```
public class myClass(){
public void myMethod(){
Logger.push('myMethod','myClass');
try{
// Somecode
catch (Exception e){
Logger.debugException (e);
}
Logger.pop();
}
}
```
# Issues
# Todo's
- Add support for RecordTypes