destroytoday
destroytoday

Reputation: 227

Console class init function name

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.

Upvotes: 0

Views: 196

Answers (4)

Justen Holter
Justen Holter

Reputation: 1

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

Upvotes: 0

mralex
mralex

Reputation: 106

Console.logTo(path, loaderInfo) ?

Upvotes: 0

Damian Powell
Damian Powell

Reputation: 8775

How about a touch of the Patrick Stewart?

makeItSo();

Upvotes: 3

Justin
Justin

Reputation: 5069

init (unless thats taken?)

Upvotes: 2

Related Questions