Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
VILLASframework
VILLAScommon
Commits
50f92951
Commit
50f92951
authored
Jun 21, 2021
by
Steffen Vogel
🎅🏼
Browse files
improve naming of plugin loggers
parent
1c1f4f7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/villas/plugin.hpp
View file @
50f92951
...
...
@@ -131,6 +131,10 @@ public:
virtual
std
::
string
getName
()
const
=
0
;
/// Get plugin type
virtual
std
::
string
getType
()
const
=
0
;
// Get plugin description
virtual
std
::
string
getDescription
()
const
=
0
;
...
...
@@ -138,10 +142,12 @@ public:
protected:
std
::
string
path
;
virtual
Logger
getLogger
()
{
return
logging
.
get
(
"plugin:"
+
getName
());
auto
name
=
fmt
::
format
(
"{}:{}"
,
getType
(),
getName
());
return
logging
.
get
(
name
);
}
};
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment