samples/cpp/windows/console/samples/diagnostics_logging_samples.cpp
void DiagnosticsLoggingFileLoggerWithoutFilter()
{
    // Define the name of a log file on your local disk
    std::string logFile = "speech-sdk-log.txt";

    // Start logging to the given file. By default it will create
    // a new file, but you have the option of appending to an existing one
    FileLogger::Start(logFile);

    // Do your Speech SDK calls... for example:
    auto config = SpeechConfig::FromSubscription("YourSubscriptionKey", "YourServiceRegion");
    auto recognizer = SpeechRecognizer::FromConfig(config);

    // Stop logging
    FileLogger::Stop();

    // Now look at the log file that was created.. 
}
// Shows how to enabled Speech SDK trace logging to a file. Microsoft may ask you to collect logs
// in order to investigate an issue you reported.
Shows how to enabled Speech SDK trace logging to a file. Microsoft may ask you to collect logs
in order to investigate an issue you reported.
Shows how to enabled Speech SDK trace logging to a file . Microsoft may ask you to collect logs in order to investigate an issue you reported .
void DiagnosticsLoggingFileLoggerWithoutFilter()
{
    std::string logFile = "speech-sdk-log.txt";
    FileLogger::Start(logFile);
    auto config = SpeechConfig::FromSubscription("YourSubscriptionKey", "YourServiceRegion");
    auto recognizer = SpeechRecognizer::FromConfig(config);
    FileLogger::Stop();
}
void DiagnosticsLoggingFileLoggerWithoutFilter ( ) { std :: string logFile = " " ; FileLogger :: Start ( logFile ) ; auto config = SpeechConfig :: FromSubscription ( " " , " " ) ; auto recognizer = SpeechRecognizer :: FromConfig ( config ) ; FileLogger :: Stop ( ) ; }
Shows how to enabled Speech SDK trace logging to a file.
Shows how to enabled Speech SDK trace logging to a file .
// Define the name of a log file on your local disk // Start logging to the given file. By default it will create // a new file, but you have the option of appending to an existing one // Do your Speech SDK calls... for example: // Stop logging // Now look at the log file that was created.. 