mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-23 22:22:05 +08:00
astyle
This commit is contained in:
parent
58308df33c
commit
d163b8c45a
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
find . -name "*\.h" -o -name "*\.cpp"|xargs dos2unix
|
find . -name "*\.h" -o -name "*\.cpp"|xargs dos2unix
|
||||||
find . -name "*\.h" -o -name "*\.cpp"|xargs astyle -n -A1
|
find . -name "*\.h" -o -name "*\.cpp"|xargs astyle -n -c -t4 -A1
|
||||||
|
|
||||||
|
|
||||||
|
@ -76,11 +76,11 @@ int main(int, char* [])
|
|||||||
async_file->info() << "This is async log.." << "Should be very fast!";
|
async_file->info() << "This is async log.." << "Should be very fast!";
|
||||||
|
|
||||||
// syslog example. linux only..
|
// syslog example. linux only..
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
std::string ident = "spdlog-example";
|
std::string ident = "spdlog-example";
|
||||||
auto syslog_logger = spd::syslog_logger("syslog", ident, LOG_PID);
|
auto syslog_logger = spd::syslog_logger("syslog", ident, LOG_PID);
|
||||||
syslog_logger->warn("This is warning that will end up in syslog. This is Linux only!");
|
syslog_logger->warn("This is warning that will end up in syslog. This is Linux only!");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (const spd::spdlog_ex& ex)
|
catch (const spd::spdlog_ex& ex)
|
||||||
|
@ -39,7 +39,8 @@ namespace spdlog
|
|||||||
|
|
||||||
class formatter;
|
class formatter;
|
||||||
|
|
||||||
namespace sinks {
|
namespace sinks
|
||||||
|
{
|
||||||
class sink;
|
class sink;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,7 +51,6 @@ struct log_msg
|
|||||||
raw << fmt::BasicStringRef<char>(other.raw.data(), other.raw.size());
|
raw << fmt::BasicStringRef<char>(other.raw.data(), other.raw.size());
|
||||||
if (other.formatted.size())
|
if (other.formatted.size())
|
||||||
formatted << fmt::BasicStringRef<char>(other.formatted.data(), other.formatted.size());
|
formatted << fmt::BasicStringRef<char>(other.formatted.data(), other.formatted.size());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
log_msg(log_msg&& other) :
|
log_msg(log_msg&& other) :
|
||||||
|
Loading…
Reference in New Issue
Block a user