开发者

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 the开发者_JS百科re's something more accurate. To me, start methods always have end/stop methods, but since this one doesn't, "start" doesn't seem appropriate.


How about a touch of the Patrick Stewart?

makeItSo();


init (unless thats taken?)


Console.logTo(path, loaderInfo) ?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜