Timeline for Which design (pattern) would be suitable to abstract logging platforms?
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 2, 2023 at 17:49 | answer | added | Vinod Srivastav | timeline score: 0 | |
Feb 14, 2015 at 14:18 | comment | added | t3chb0t | @Franck it wasn't my intention. I'm sorry that I didn't write it in my question. All I was looking for was an inspiration and some hints. Like you say it would not be very clever to try to keep to any particular pattern at all costs but it may be helpful to take one or the other ready and tested solution from them and modifiy it for you own needs. I'm glad that few people posted answers that I wasn't able to find by myself. They will definitely help me to start without re-inventing everything and make me thing about few things that I might have missed. | |
Feb 13, 2015 at 21:14 | comment | added | Franck | You should not code in order to do a specific pattern. If your code end up looking like a pattern then good for you. Otherwise it's useless to try to over think simple things. | |
Feb 13, 2015 at 19:37 | comment | added | t3chb0t | @Doval Yes, I'm going to use only one logging framework at a time. Thanks for the suggestion. I'll think of it. | |
Feb 13, 2015 at 19:09 | answer | added | AK_ | timeline score: 3 | |
Feb 13, 2015 at 19:00 | vote | accept | t3chb0t | ||
Feb 13, 2015 at 18:55 | answer | added | amon | timeline score: 7 | |
Feb 13, 2015 at 18:54 | comment | added | Doval |
If you're only ever going to use one logging framework at a time, the simplest thing is just a lone class in an assembly. The choice of logger and configuration would be hard-coded, but you can easily swap out the .dll for another between runs of the program.
|
|
Feb 13, 2015 at 18:41 | history | edited | t3chb0t | CC BY-SA 3.0 |
added 156 characters in body
|
Feb 13, 2015 at 18:39 | comment | added | t3chb0t | A good point. That's why I wrote pattern in parethesees. | |
Feb 13, 2015 at 18:34 | comment | added | MetaFight | programmers.stackexchange.com/questions/70877/… | |
Feb 13, 2015 at 18:33 | history | edited | t3chb0t |
edited tags
|
|
Feb 13, 2015 at 18:25 | history | asked | t3chb0t | CC BY-SA 3.0 |