mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-18 15:55:12 +08:00
Turned on console logging/tracing.
This commit is contained in:
parent
99e8ff31d8
commit
adfeec0605
@ -6,6 +6,7 @@
|
||||
#ifndef NCS3SDK_H
|
||||
#define NCS3SDK_H 1
|
||||
|
||||
|
||||
typedef struct NCS3INFO {
|
||||
char* host; /* non-null if other*/
|
||||
char* region; /* region */
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include <aws/core/utils/logging/DefaultLogSystem.h>
|
||||
#include <aws/core/utils/logging/AWSLogging.h>
|
||||
#include <aws/core/Version.h>
|
||||
#include <aws/core/utils/logging/ConsoleLogSystem.h>
|
||||
#include <ios>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
@ -8,6 +8,8 @@
|
||||
#define NOOP
|
||||
#define DEBUG
|
||||
|
||||
|
||||
|
||||
#include "awsincludes.h"
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -112,8 +114,11 @@ NC_s3sdkinitialize(void)
|
||||
if(!ncs3_initialized) {
|
||||
ncs3_initialized = 1;
|
||||
ncs3_finalized = 0;
|
||||
NCTRACE(11,NULL);
|
||||
|
||||
ncs3options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Trace;
|
||||
ncs3options.loggingOptions.logger_create_fn = [] { return std::make_shared<Aws::Utils::Logging::ConsoleLogSystem>(Aws::Utils::Logging::LogLevel::Trace); };
|
||||
Aws::InitAPI(ncs3options);
|
||||
|
||||
#ifdef DEBUG
|
||||
ncs3options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Debug;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user