Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Universal Logging Plugin
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Unreal-Development
Plugins
Universal Logging Plugin
Commits
1147a555
Commit
1147a555
authored
Jan 30, 2020
by
mbellgardt
Browse files
Options
Downloads
Patches
Plain Diff
Add the fix
parent
969a166b
No related branches found
No related tags found
2 merge requests
!16
Develop
,
!3
Fixing the LogF warning
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/UniversalLogging/Public/IUniversalLogging.h
+5
-3
5 additions, 3 deletions
Source/UniversalLogging/Public/IUniversalLogging.h
with
5 additions
and
3 deletions
Source/UniversalLogging/Public/IUniversalLogging.h
+
5
−
3
View file @
1147a555
...
@@ -71,10 +71,12 @@ public:
...
@@ -71,10 +71,12 @@ public:
* Advanced logging with printf like syntax.
* Advanced logging with printf like syntax.
* Note: Does not automatically add newline!
* Note: Does not automatically add newline!
*/
*/
template
<
typename
...
TArgs
>
template
<
typename
FmtType
,
typename
...
TArgs
>
void
LogF
(
const
FString
Stream
,
const
F
String
Format
,
TArgs
&&
...
Args
)
void
LogF
(
const
FString
Stream
,
const
F
mtType
&
Format
,
TArgs
&&
...
Args
)
{
{
const
FString
Out
=
FString
::
Printf
(
*
Format
,
Args
...);
static_assert
(
TIsArrayOrRefOfType
<
FmtType
,
TCHAR
>::
Value
,
"Format must be a TCHAR string literal, i.e., only ever call this function with TEXT(
\"
...
\"
) as the second parameter."
);
const
FString
Out
=
FString
::
Printf
(
Format
,
Args
...);
Log
(
Out
,
Stream
,
true
);
Log
(
Out
,
Stream
,
true
);
}
}
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment