Skip to content

Commit 5a816ae

Browse files
committed
add example line to Log.h
1 parent ee92085 commit 5a816ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

engine/src/Log.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ class Log
1515
};
1616

1717
// log macros
18+
//
19+
// example use:
20+
// YOA_INFO("Some logging message - [{0}:\t{1}]", __FILE__, __LINE__);
1821
#define YOA_TRACE(...) { auto log = ::Log::GetCoreLogger(); if(log)log->trace(__VA_ARGS__); };
1922
#define YOA_INFO(...) { auto log = ::Log::GetCoreLogger(); if(log)log->info(__VA_ARGS__); };
2023
#define YOA_WARN(...) { auto log = ::Log::GetCoreLogger(); if(log)log->warn(__VA_ARGS__); };

0 commit comments

Comments
 (0)