Click here to Skip to main content
15,886,036 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: WCF service based application design Pin
Ed K6-Jun-12 3:47
Ed K6-Jun-12 3:47 
Question[algo] Algo for naming of duplicate/clone "objects" ? Pin
Maximilien25-May-12 9:19
Maximilien25-May-12 9:19 
AnswerRe: [algo] Algo for naming of duplicate/clone "objects" ? Pin
GFRANTA25-May-12 11:22
GFRANTA25-May-12 11:22 
QuestionRe: [algo] Algo for naming of duplicate/clone "objects" ? Pin
Maximilien25-May-12 12:34
Maximilien25-May-12 12:34 
AnswerRe: [algo] Algo for naming of duplicate/clone "objects" ? Pin
Eddy Vluggen26-May-12 2:49
professionalEddy Vluggen26-May-12 2:49 
GeneralRe: [algo] Algo for naming of duplicate/clone "objects" ? Pin
Maximilien26-May-12 8:06
Maximilien26-May-12 8:06 
QuestionCross cutting concerns Pin
Leslie Sanford25-May-12 3:43
Leslie Sanford25-May-12 3:43 
AnswerRe: Cross cutting concerns Pin
Eddy Vluggen25-May-12 3:52
professionalEddy Vluggen25-May-12 3:52 
Leslie Sanford wrote:
, so you create a decorator class to wrap the original class. Inside its doIt
method, it logs the results returned from the object it's decorating.

 
Thoughts?

Sounds like a nice academical excercise; you'd be creating an additional (and relatively complex) object for every class that you'll be using. That might amount to a lot of work.

Simplest solution is a static class (would work similar to Debug.Print), solution I like most would be injection (Some ILogger), solution to be advised would be the logging component of the EntLib.
Bastard Programmer from Hell Suspicious | :suss:

GeneralRe: Cross cutting concerns Pin
jschell25-May-12 9:02
jschell25-May-12 9:02 
AnswerRe: Cross cutting concerns Pin
jschell25-May-12 9:12
jschell25-May-12 9:12 
AnswerRe: Cross cutting concerns Pin
Ed K6-Jun-12 3:49
Ed K6-Jun-12 3:49 
AnswerRe: Cross cutting concerns Pin
Keld Ølykke20-Jun-12 6:00
Keld Ølykke20-Jun-12 6:00 
QuestionScope For Hospital Management Pin
santosh_pathak22-May-12 21:57
santosh_pathak22-May-12 21:57 
AnswerRe: Scope For Hospital Management Pin
Pete O'Hanlon22-May-12 22:06
mvePete O'Hanlon22-May-12 22:06 
GeneralRe: Scope For Hospital Management Pin
santosh_pathak22-May-12 22:14
santosh_pathak22-May-12 22:14 
GeneralRe: Scope For Hospital Management Pin
Pete O'Hanlon22-May-12 22:21
mvePete O'Hanlon22-May-12 22:21 
GeneralRe: Scope For Hospital Management Pin
santosh_pathak22-May-12 22:25
santosh_pathak22-May-12 22:25 
GeneralRe: Scope For Hospital Management Pin
Vivi Chellappa27-May-12 21:51
professionalVivi Chellappa27-May-12 21:51 
AnswerRe: Scope For Hospital Management Pin
Bernhard Hiller22-May-12 22:30
Bernhard Hiller22-May-12 22:30 
GeneralRe: Scope For Hospital Management Pin
santosh_pathak22-May-12 22:55
santosh_pathak22-May-12 22:55 
AnswerRe: Scope For Hospital Management Pin
jschell23-May-12 10:28
jschell23-May-12 10:28 
GeneralRe: Scope For Hospital Management Pin
santosh_pathak23-May-12 17:15
santosh_pathak23-May-12 17:15 
GeneralRe: Scope For Hospital Management Pin
jschell24-May-12 8:29
jschell24-May-12 8:29 
AnswerRe: Scope For Hospital Management Pin
wizardzz5-Jun-12 6:49
wizardzz5-Jun-12 6:49 
AnswerRe: Scope For Hospital Management Pin
kishhr22-Jun-12 9:02
kishhr22-Jun-12 9:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.