ufe 5.5
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 "S:/jenkins/workspace/ECP/ufe/ufe-full-python3.11-windows/ufe/include/log.h"
2#ifndef _log
3#define _log
4// ===========================================================================
5// Copyright 2018 Autodesk, Inc. All rights reserved.
6//
7// Use of this software is subject to the terms of the Autodesk license
8// agreement provided at the time of installation or download, or which
9// otherwise accompanies this software in either electronic or hard copy form.
10// ===========================================================================
11
12#include <string>
13#include "common/ufeExport.h"
14
15#ifdef WIN32
16 #define UFE_LOG(MSG) \
17 ( Ufe::log(__FUNCTION__, __FILE__, __LINE__, MSG) )
18#else
19 #define UFE_LOG(MSG) \
20 ( Ufe::log(__func__, __FILE__, __LINE__, MSG) )
21#endif
22
24{
25// \brief Log message.
26//
27// This function sends to standard error the logged message, the
28// filename, line number, and function where the log was requested.
29//
30// \param func The function where the log was requested.
31// \param filename The filename where the log was requested.
32// \param lineno The line number where the log was requested.
33// \param msg Logged message.
34UFE_SDK_DECL void log(const char* func,
35 const char* filename,
36 int lineno,
37 const std::string& msg);
38
39} // UFE_NS_DEF
40
41#endif /* _log */
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:35
Definition of macros for symbol visibility.
#define UFE_SDK_DECL
Definition: ufeExport.h:36