Diagnostics Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. Diagnostics
- com.
public final class Diagnostics
Native logging and other diagnostics
Constructor Summary
Constructor | Description | |
---|---|---|
Diagnostics() |
Method Summary
Modifier and Type | Method and Description |
---|---|
static void |
dumpMemoryLog(String filename, String linePrefix, boolean emitToStdOut, boolean emitToStdErr)
Dumps the contents of the memory logger |
static void |
dumpMemoryLogOnExit(String filename, String linePrefix, boolean emitToStdOut, boolean emitToStdErr)
Dumps the contents of the memory logger on exit |
static void |
startConsoleLogging()
Starts console (for Android, logcat) logging |
static void |
startConsoleLogging(boolean logToStderr)
Starts console (for Android, logcat) logging |
static void |
startFileLogging(String filename, boolean append)
Enables the native file logger |
static void |
startMemoryLogging()
Enables the native memory logger |
static void |
stopConsoleLogging()
Stops console logging |
static void |
stopFileLogging()
Stops the native file logger |
static void |
stopMemoryLogging()
Stops the native memory logger |
Methods inherited from java.lang.Object
Constructor Details
Diagnostics
public Diagnostics()
Method Details
dumpMemoryLog
public static void dumpMemoryLog(String filename, String linePrefix, boolean emitToStdOut, boolean emitToStdErr)
Dumps the contents of the memory logger
Parameters:
dumpMemoryLogOnExit
public static void dumpMemoryLogOnExit(String filename, String linePrefix, boolean emitToStdOut, boolean emitToStdErr)
Dumps the contents of the memory logger on exit
Parameters:
startConsoleLogging
public static void startConsoleLogging()
Starts console (for Android, logcat) logging
startConsoleLogging
public static void startConsoleLogging(boolean logToStderr)
Starts console (for Android, logcat) logging
Parameters:
startFileLogging
public static void startFileLogging(String filename, boolean append)
Enables the native file logger
Parameters:
startMemoryLogging
public static void startMemoryLogging()
Enables the native memory logger
stopConsoleLogging
public static void stopConsoleLogging()
Stops console logging
stopFileLogging
public static void stopFileLogging()
Stops the native file logger
stopMemoryLogging
public static void stopMemoryLogging()
Stops the native memory logger
Applies to
Azure SDK for Java