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().
精彩评论