Commit d163b8c4 authored by gabime's avatar gabime

astyle

parent 58308df3
#!/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* []) ...@@ -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 ...@@ -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 ...@@ -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) :
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment