ufe 7.0
Universal Front End is a DCC-agnostic component that will allow a DCC to browse and edit data in multiple data models
log.h
Go to the documentation of this file.
1#line 1 "D:/Jenkins/workspace/EMS/ECG/ufe/full/ufe-full-python3.13-windows/ufe/include/log.h"
2#ifndef UFE_LOG_H
3#define UFE_LOG_H
4
5// ===========================================================================
6// Copyright 2025 Autodesk, Inc. All rights reserved.
7//
8// The use of this software is subject to the Autodesk Terms of Use or other
9// license agreement provided at the time of installation or download, or
10// which otherwise accompanies this software.
11// ===========================================================================
12
13#include <string>
14#include "common/ufeExport.h"
15
16#ifdef WIN32
17 #define UFE_LOG(MSG) \
18 ( Ufe::log(__FUNCTION__, __FILE__, __LINE__, MSG) )
19#else
20 #define UFE_LOG(MSG) \
21 ( Ufe::log(__func__, __FILE__, __LINE__, MSG) )
22#endif
23
25{
26// \brief Log message.
27//
28// This function sends to standard error the logged message, the
29// filename, line number, and function where the log was requested.
30//
31// \param func The function where the log was requested.
32// \param filename The filename where the log was requested.
33// \param lineno The line number where the log was requested.
34// \param msg Logged message.
35UFE_SDK_DECL void log(const char* func,
36 const char* filename,
37 int lineno,
38 const std::string& msg);
39
40} // UFE_NS_DEF
41
42#endif /* UFE_LOG_H */
std::string string(const Path &path)
void log(const char *func, const char *filename, int lineno, const std::string &msg)
#define UFE_NS_DEF
Definition: ufe.h:36
Definition of macros for symbol visibility.
#define UFE_SDK_DECL
Definition: ufeExport.h:35