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