MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / deleteLog

Method deleteLog

CodenameOne/src/com/codename1/io/Log.java:274–286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

272
273 /// Deletes the current log file
274 public static void deleteLog() {
275 if (instance.output != null) {
276 Util.cleanup(instance.output);
277 instance.output = null;
278 }
279 if (instance.getFileURL() == null) {
280 Storage.getInstance().deleteStorageFile("CN1Log__$");
281 } else {
282 if (FileSystemStorage.getInstance().exists(instance.getFileURL())) {
283 FileSystemStorage.getInstance().delete(instance.getFileURL());
284 }
285 }
286 }
287
288 /// Returns the logging level for printing log details, the lower the value
289 /// the more verbose would the printouts be

Callers 1

invokeStatic9Method · 0.80

Calls 7

cleanupMethod · 0.95
getInstanceMethod · 0.95
getInstanceMethod · 0.95
getFileURLMethod · 0.80
existsMethod · 0.65
deleteMethod · 0.65
deleteStorageFileMethod · 0.45

Tested by

no test coverage detected