### YamlMime:JavaType
uid: "com.microsoft.cognitiveservices.speech.Diagnostics"
fullName: "com.microsoft.cognitiveservices.speech.Diagnostics"
name: "Diagnostics"
nameWithType: "Diagnostics"
summary: "Native logging and other diagnostics"
inheritances:
- ""
inheritedClassMethods:
- classRef: ""
methodsRef:
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
- ""
syntax: "public final class **Diagnostics**"
constructors:
- uid: "com.microsoft.cognitiveservices.speech.Diagnostics.Diagnostics()"
fullName: "com.microsoft.cognitiveservices.speech.Diagnostics.Diagnostics()"
name: "Diagnostics()"
nameWithType: "Diagnostics.Diagnostics()"
syntax: "public Diagnostics()"
methods:
- uid: "com.microsoft.cognitiveservices.speech.Diagnostics.dumpMemoryLog(java.lang.String,java.lang.String,boolean,boolean)"
fullName: "com.microsoft.cognitiveservices.speech.Diagnostics.dumpMemoryLog(String filename, String linePrefix, boolean emitToStdOut, boolean emitToStdErr)"
name: "dumpMemoryLog(String filename, String linePrefix, boolean emitToStdOut, boolean emitToStdErr)"
nameWithType: "Diagnostics.dumpMemoryLog(String filename, String linePrefix, boolean emitToStdOut, boolean emitToStdErr)"
summary: "Dumps the contents of the memory logger"
modifiers:
- "static"
parameters:
- description: "The name of the file to write to. Set this to an empty string if not needed"
name: "filename"
type: ""
- description: "The prefix to apply to each line of logged memory content, e.g. \"CRBN\""
name: "linePrefix"
type: ""
- description: "Whether the log should be emitted to standard output (for Android, logcat) in addition to any other targets"
name: "emitToStdOut"
type: ""
- description: "Whether the log should be emitted to standard error (for Android, logcat) in addition to any other targets"
name: "emitToStdErr"
type: ""
syntax: "public static void dumpMemoryLog(String filename, String linePrefix, boolean emitToStdOut, boolean emitToStdErr)"
desc: "Dumps the contents of the memory logger"
- uid: "com.microsoft.cognitiveservices.speech.Diagnostics.dumpMemoryLogOnExit(java.lang.String,java.lang.String,boolean,boolean)"
fullName: "com.microsoft.cognitiveservices.speech.Diagnostics.dumpMemoryLogOnExit(String filename, String linePrefix, boolean emitToStdOut, boolean emitToStdErr)"
name: "dumpMemoryLogOnExit(String filename, String linePrefix, boolean emitToStdOut, boolean emitToStdErr)"
nameWithType: "Diagnostics.dumpMemoryLogOnExit(String filename, String linePrefix, boolean emitToStdOut, boolean emitToStdErr)"
summary: "Dumps the contents of the memory logger on exit"
modifiers:
- "static"
parameters:
- description: "The name of the file to write to. Set this to an empty string if not needed"
name: "filename"
type: ""
- description: "The prefix to apply to each line of logged memory content, e.g. \"CRBN\""
name: "linePrefix"
type: ""
- description: "Whether the log should be emitted to standard output (for Android, logcat) in addition to any other targets"
name: "emitToStdOut"
type: ""
- description: "Whether the log should be emitted to standard error (for Android, logcat) in addition to any other targets"
name: "emitToStdErr"
type: ""
syntax: "public static void dumpMemoryLogOnExit(String filename, String linePrefix, boolean emitToStdOut, boolean emitToStdErr)"
desc: "Dumps the contents of the memory logger on exit"
- uid: "com.microsoft.cognitiveservices.speech.Diagnostics.startConsoleLogging()"
fullName: "com.microsoft.cognitiveservices.speech.Diagnostics.startConsoleLogging()"
name: "startConsoleLogging()"
nameWithType: "Diagnostics.startConsoleLogging()"
summary: "Starts console (for Android, logcat) logging"
modifiers:
- "static"
syntax: "public static void startConsoleLogging()"
desc: "Starts console (for Android, logcat) logging"
- uid: "com.microsoft.cognitiveservices.speech.Diagnostics.startConsoleLogging(boolean)"
fullName: "com.microsoft.cognitiveservices.speech.Diagnostics.startConsoleLogging(boolean logToStderr)"
name: "startConsoleLogging(boolean logToStderr)"
nameWithType: "Diagnostics.startConsoleLogging(boolean logToStderr)"
summary: "Starts console (for Android, logcat) logging"
modifiers:
- "static"
parameters:
- description: "Whether the log should be emitted to standard error or standard out; has no effect on Android."
name: "logToStderr"
type: ""
syntax: "public static void startConsoleLogging(boolean logToStderr)"
desc: "Starts console (for Android, logcat) logging"
- uid: "com.microsoft.cognitiveservices.speech.Diagnostics.startFileLogging(java.lang.String,boolean)"
fullName: "com.microsoft.cognitiveservices.speech.Diagnostics.startFileLogging(String filename, boolean append)"
name: "startFileLogging(String filename, boolean append)"
nameWithType: "Diagnostics.startFileLogging(String filename, boolean append)"
summary: "Enables the native file logger"
modifiers:
- "static"
parameters:
- description: "The name of resulting log file"
name: "filename"
type: ""
- description: "If true will append to file (if already exists). Otherwise will create a new file"
name: "append"
type: ""
syntax: "public static void startFileLogging(String filename, boolean append)"
desc: "Enables the native file logger"
- uid: "com.microsoft.cognitiveservices.speech.Diagnostics.startMemoryLogging()"
fullName: "com.microsoft.cognitiveservices.speech.Diagnostics.startMemoryLogging()"
name: "startMemoryLogging()"
nameWithType: "Diagnostics.startMemoryLogging()"
summary: "Enables the native memory logger"
modifiers:
- "static"
syntax: "public static void startMemoryLogging()"
desc: "Enables the native memory logger"
- uid: "com.microsoft.cognitiveservices.speech.Diagnostics.stopConsoleLogging()"
fullName: "com.microsoft.cognitiveservices.speech.Diagnostics.stopConsoleLogging()"
name: "stopConsoleLogging()"
nameWithType: "Diagnostics.stopConsoleLogging()"
summary: "Stops console logging"
modifiers:
- "static"
syntax: "public static void stopConsoleLogging()"
desc: "Stops console logging"
- uid: "com.microsoft.cognitiveservices.speech.Diagnostics.stopFileLogging()"
fullName: "com.microsoft.cognitiveservices.speech.Diagnostics.stopFileLogging()"
name: "stopFileLogging()"
nameWithType: "Diagnostics.stopFileLogging()"
summary: "Stops the native file logger"
modifiers:
- "static"
syntax: "public static void stopFileLogging()"
desc: "Stops the native file logger"
- uid: "com.microsoft.cognitiveservices.speech.Diagnostics.stopMemoryLogging()"
fullName: "com.microsoft.cognitiveservices.speech.Diagnostics.stopMemoryLogging()"
name: "stopMemoryLogging()"
nameWithType: "Diagnostics.stopMemoryLogging()"
summary: "Stops the native memory logger"
modifiers:
- "static"
syntax: "public static void stopMemoryLogging()"
desc: "Stops the native memory logger"
type: "class"
desc: "Native logging and other diagnostics"
metadata: {}
package: "com.microsoft.cognitiveservices.speech"
artifact: com.microsoft.cognitiveservices.speech:client-sdk:1.38.0