Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
fa6f8b3c
Commit
fa6f8b3c
authored
Jan 27, 2014
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefile fixes
parent
bbfa3f49
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
85 deletions
+0
-85
logger.cpp
src/logger.cpp
+0
-52
stdafx.cpp
stdafx.cpp
+0
-8
stdafx.h
stdafx.h
+0
-17
targetver.h
targetver.h
+0
-8
No files found.
src/logger.cpp
deleted
100644 → 0
View file @
bbfa3f49
#include "stdafx.h"
#include <algorithm>
#include "c11log/logger.h"
void
c11log
::
logger
::
set_name
(
const
std
::
string
&
name
)
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
_mutex
);
_logger_name
=
name
;
}
const
std
::
string
&
c11log
::
logger
::
get_name
()
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
_mutex
);
return
_logger_name
;
}
void
c11log
::
logger
::
add_sink
(
sink_ptr_t
sink_ptr
)
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
_mutex
);
_sinks
.
push_back
(
sink_ptr
);
}
void
c11log
::
logger
::
remove_sink
(
sink_ptr_t
sink_ptr
)
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
_mutex
);
_sinks
.
erase
(
std
::
remove
(
_sinks
.
begin
(),
_sinks
.
end
(),
sink_ptr
),
_sinks
.
end
());
}
void
c11log
::
logger
::
set_formatter
(
std
::
unique_ptr
<
formatters
::
formatter
>
formatter
)
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
_mutex
);
_formatter
=
std
::
move
(
formatter
);
}
void
c11log
::
logger
::
set_level
(
c11log
::
level
::
level_enum
level
)
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
_mutex
);
_level
=
level
;
}
bool
c11log
::
logger
::
should_log
(
c11log
::
level
::
level_enum
level
)
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
_mutex
);
return
level
>=
_level
;
}
c11log
::
logger
&
c11log
::
get_logger
(
const
std
::
string
&
name
)
{
return
*
(
c11log
::
details
::
factory
::
instance
().
get_logger
(
name
));
}
\ No newline at end of file
stdafx.cpp
deleted
100644 → 0
View file @
bbfa3f49
// stdafx.cpp : source file that includes just the standard includes
// c11log.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file
stdafx.h
deleted
100644 → 0
View file @
bbfa3f49
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
#include "targetver.h"
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <string>
#include <chrono>
#include <ctime>
#include <memory>
#include <iostream>
\ No newline at end of file
targetver.h
deleted
100644 → 0
View file @
bbfa3f49
#pragma once
// Including SDKDDKVer.h defines the highest available Windows platform.
// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.
#include <SDKDDKVer.h>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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