I developed a static Console class that writes any traces, successes, and errors to a log file. It requires a file path String and a LoaderInfo instance to get started. At the moment, the function is named start(path, loaderInfo). I'm not really feeling the name "start", so I'm wondering if there's something more accurate. To me, start methods always have end/stop methods, but since this one doesn't, "start" doesn't seem appropriate.
I typically don't pass arguments through init methods. Is that weird?
destroytoday
2009-12-17 00:03:41
kinda. I like Damian's 'attach' to a path approach. or just log(path, info); ?
Justin
2009-12-17 00:17:41
Seriously though, I think Justin's suggestion makes sense. I don't feel like a Console should be started either. It might be 'attached' to a stream or set of streams though, I suppose.
Damian Powell
2009-12-17 00:06:41
LOL - perhaps Engage is more appropriate?Like you said, Attach (params, ...) smells right to me.
Kieron
2009-12-17 09:45:48
A:
I would go with startLogging(), then to be followed up by stopLogging().
Justen Holter
2009-12-17 02:54:09