Console class init function name

200 Views Asked by At

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.

4

There are 4 best solutions below

2
On BEST ANSWER

init (unless thats taken?)

2
On

How about a touch of the Patrick Stewart?

makeItSo();

0
On

Console.logTo(path, loaderInfo) ?

0
On

I would go with startLogging(), then to be followed up by stopLogging().