NVIDIA Iray API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ilogging_configuration.h
Go to the documentation of this file.
1 //***************************01************************************************
2 // Copyright 1986, 2014 NVIDIA Corporation. All rights reserved.
3 //*****************************************************************************
6 //*****************************************************************************
7 
8 #ifndef MI_NEURAYLIB_ILOGGING_CONFIGURATION_H
9 #define MI_NEURAYLIB_ILOGGING_CONFIGURATION_H
10 
11 #include <mi/base/enums.h>
13 
14 namespace mi {
15 
16 namespace base { class ILogger; }
17 
18 namespace neuraylib {
19 
24 enum Log_prefix {
26  LOG_PREFIX_TIME = 0x0001,
30  LOG_PREFIX_MODULE = 0x0010,
33  LOG_PREFIX_FORCE_32_BIT = 0xffffffffU
34 };
35 
36 mi_static_assert( sizeof( Log_prefix) == sizeof( Uint32));
37 
64 class ILogging_configuration : public
65  mi::base::Interface_declare<0xaf42fbf7,0xa7da,0x4f35,0xa7,0xcb,0xbe,0xb5,0xcc,0x11,0x3d,0x7c>
66 {
67 public:
78  virtual void set_receiving_logger( base::ILogger* logger) = 0;
79 
88  virtual base::ILogger* get_receiving_logger() const = 0;
89 
93  virtual base::ILogger* get_forwarding_logger() const = 0;
94 
103  virtual Sint32 set_log_level( base::Message_severity level) = 0;
104 
110  virtual base::Message_severity get_log_level() const = 0;
111 
124  const char* category,
125  base::Message_severity level) = 0;
126 
134  virtual base::Message_severity get_log_level_by_category( const char* category) const = 0;
135 
147  virtual Sint32 set_log_priority( Uint32 priority) = 0;
148 
150  virtual Uint32 get_log_priority() const = 0;
151 
159  virtual void set_log_prefix( Uint32 prefix) = 0;
160 
165  virtual Uint32 get_log_prefix() const = 0;
166 };
167  // end group mi_neuray_configuration
169 
170 } // namespace neuraylib
171 
172 } // namespace mi
173 
174 #endif // MI_NEURAYLIB_ILOGGING_CONFIGURATION_H