| 1 | package BehaviouralDesignPatterns.ChainOfResponsibilityDesignPattern.DesignLogger; |
| 2 | |
| 3 | public class Main { |
| 4 | public static void main(String[] args) { |
| 5 | LogProcessor logObject = new InfoLogProcessor(new DebugLogProcessor(new ErrorLogProcessor(null))); |
| 6 | logObject.log(1, "This is a INFO logger."); |
| 7 | logObject.log(2, "This is a DEBUG logger."); |
| 8 | logObject.log(3, "This is an ERROR logger"); |
| 9 | logObject.log(6, "Does not exist"); |
| 10 | |
| 11 | |
| 12 | } |
| 13 | } |
nothing calls this directly
no outgoing calls
no test coverage detected