IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pranav Sampathkumar
corsika
Commits
117132d2
Commit
117132d2
authored
4 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
make functions inline, otherwise the linker complains
parent
e19bc849
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Data
+1
-1
1 addition, 1 deletion
Data
Framework/Logging/Logging.h
+7
-7
7 additions, 7 deletions
Framework/Logging/Logging.h
with
8 additions
and
8 deletions
Data
@
968325e6
Compare
47e6e5ab
...
968325e6
Subproject commit
47e6e5abb78b8151c9748af44e09efcbee810fac
Subproject commit
968325e6a734e3967c1aff15138f72b6b13edf0b
This diff is collapsed.
Click to expand it.
Framework/Logging/Logging.h
+
7
−
7
View file @
117132d2
...
@@ -68,7 +68,7 @@ namespace corsika::logging {
...
@@ -68,7 +68,7 @@ namespace corsika::logging {
* @param defaultlog If True, set this as the default logger.
* @param defaultlog If True, set this as the default logger.
* @returns The constructed and formatted logger.
* @returns The constructed and formatted logger.
*/
*/
auto
CreateLogger
(
std
::
string
const
&
name
,
bool
const
defaultlog
=
false
)
{
inline
auto
CreateLogger
(
std
::
string
const
&
name
,
bool
const
defaultlog
=
false
)
{
// create the logger
// create the logger
// this is currently a colorized multi-threading safe logger
// this is currently a colorized multi-threading safe logger
...
@@ -97,7 +97,7 @@ namespace corsika::logging {
...
@@ -97,7 +97,7 @@ namespace corsika::logging {
* @param defaultlog If True, make this the default logger.
* @param defaultlog If True, make this the default logger.
* @returns The constructed and formatted logger.
* @returns The constructed and formatted logger.
*/
*/
auto
GetLogger
(
std
::
string
const
&
name
,
bool
const
defaultlog
=
false
)
{
inline
auto
GetLogger
(
std
::
string
const
&
name
,
bool
const
defaultlog
=
false
)
{
// attempt to get the logger from the registry
// attempt to get the logger from the registry
auto
logger
=
spdlog
::
get
(
name
);
auto
logger
=
spdlog
::
get
(
name
);
...
@@ -121,7 +121,7 @@ namespace corsika::logging {
...
@@ -121,7 +121,7 @@ namespace corsika::logging {
* @param name The minimum log level required to print.
* @param name The minimum log level required to print.
*
*
*/
*/
auto
SetDefaultLevel
(
level
::
level_enum
const
minlevel
)
->
void
{
inline
auto
SetDefaultLevel
(
level
::
level_enum
const
minlevel
)
->
void
{
spdlog
::
set_level
(
minlevel
);
spdlog
::
set_level
(
minlevel
);
}
}
...
@@ -131,7 +131,7 @@ namespace corsika::logging {
...
@@ -131,7 +131,7 @@ namespace corsika::logging {
* @param name The minimum log level required to print.
* @param name The minimum log level required to print.
*
*
*/
*/
auto
SetLevel
(
level
::
level_enum
const
minlevel
)
->
void
{
inline
auto
SetLevel
(
level
::
level_enum
const
minlevel
)
->
void
{
corsika
->
set_level
(
minlevel
);
corsika
->
set_level
(
minlevel
);
}
}
...
@@ -143,7 +143,7 @@ namespace corsika::logging {
...
@@ -143,7 +143,7 @@ namespace corsika::logging {
*
*
*/
*/
template
<
typename
TLogger
>
template
<
typename
TLogger
>
auto
SetLevel
(
TLogger
&
logger
,
level
::
level_enum
const
minlevel
)
->
void
{
inline
auto
SetLevel
(
TLogger
&
logger
,
level
::
level_enum
const
minlevel
)
->
void
{
logger
->
set_level
(
minlevel
);
logger
->
set_level
(
minlevel
);
}
}
...
@@ -154,7 +154,7 @@ namespace corsika::logging {
...
@@ -154,7 +154,7 @@ namespace corsika::logging {
*
*
*/
*/
template
<
typename
TLogger
>
template
<
typename
TLogger
>
auto
AddSourceInfo
(
TLogger
&
logger
)
->
void
{
inline
auto
AddSourceInfo
(
TLogger
&
logger
)
->
void
{
logger
->
set_pattern
(
"[%n:%^%-8l%$(%s:%!:%#)] %v"
);
logger
->
set_pattern
(
"[%n:%^%-8l%$(%s:%!:%#)] %v"
);
}
}
...
@@ -165,7 +165,7 @@ namespace corsika::logging {
...
@@ -165,7 +165,7 @@ namespace corsika::logging {
*
*
*/
*/
template
<
typename
TLogger
>
template
<
typename
TLogger
>
auto
ResetPattern
(
TLogger
&
logger
)
->
void
{
inline
auto
ResetPattern
(
TLogger
&
logger
)
->
void
{
logger
->
set_pattern
(
default_pattern
);
logger
->
set_pattern
(
default_pattern
);
}
}
...
...
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