NVIDIA Iray API Home  Up
 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, 2016 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 #include <mi/neuraylib/version.h>
14 
15 namespace mi {
16 
17 namespace base { class ILogger; }
18 
19 namespace neuraylib {
20 
25 enum Log_prefix {
27  LOG_PREFIX_TIME = 0x0001,
31  LOG_PREFIX_MODULE = 0x0010,
34  LOG_PREFIX_FORCE_32_BIT = 0xffffffffU
35 };
36 
37 mi_static_assert( sizeof( Log_prefix) == sizeof( Uint32));
38 
65 class ILogging_configuration : public
66  mi::base::Interface_declare<0xaf42fbf7,0xa7da,0x4f35,0xa7,0xcb,0xbe,0xb5,0xcc,0x11,0x3d,0x7c>
67 {
68 public:
79  virtual void set_receiving_logger( base::ILogger* logger) = 0;
80 
89  virtual base::ILogger* get_receiving_logger() const = 0;
90 
94  virtual base::ILogger* get_forwarding_logger() const = 0;
95 
104  virtual Sint32 set_log_level( base::Message_severity level) = 0;
105 
111  virtual base::Message_severity get_log_level() const = 0;
112 
125  const char* category,
126  base::Message_severity level) = 0;
127 
135  virtual base::Message_severity get_log_level_by_category( const char* category) const = 0;
136 
148  virtual Sint32 set_log_priority( Sint32 priority) = 0;
149 
151  virtual Sint32 get_log_priority() const = 0;
152 
160  virtual void set_log_prefix( Uint32 prefix) = 0;
161 
166  virtual Uint32 get_log_prefix() const = 0;
167 };
168  // end group mi_neuray_configuration
170 
171 } // namespace neuraylib
172 
173 #ifdef MI_NEURAYLIB_DEPRECATED_NAMESPACE_MI_TRANSITION
174 using neuraylib::LOG_PREFIX_FORCE_32_BIT;
175 #endif // MI_NEURAYLIB_DEPRECATED_NAMESPACE_MI_TRANSITION
176 
177 } // namespace mi
178 
179 #endif // MI_NEURAYLIB_ILOGGING_CONFIGURATION_H