summaryrefslogtreecommitdiffstats
path: root/src/common/logging/backend.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-04-03 03:19:20 +0200
committerGitHub <noreply@github.com>2018-04-03 03:19:20 +0200
commitc2e0820ac2c0b51c0b14af608f4225eec8712f5e (patch)
tree0a40b6f36c98402748b881fb43986f32d16ffbd8 /src/common/logging/backend.h
parentMerge pull request #267 from N00byKing/patch-1 (diff)
parentRemove dependency chrono (diff)
downloadyuzu-c2e0820ac2c0b51c0b14af608f4225eec8712f5e.tar
yuzu-c2e0820ac2c0b51c0b14af608f4225eec8712f5e.tar.gz
yuzu-c2e0820ac2c0b51c0b14af608f4225eec8712f5e.tar.bz2
yuzu-c2e0820ac2c0b51c0b14af608f4225eec8712f5e.tar.lz
yuzu-c2e0820ac2c0b51c0b14af608f4225eec8712f5e.tar.xz
yuzu-c2e0820ac2c0b51c0b14af608f4225eec8712f5e.tar.zst
yuzu-c2e0820ac2c0b51c0b14af608f4225eec8712f5e.zip
Diffstat (limited to 'src/common/logging/backend.h')
-rw-r--r--src/common/logging/backend.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common/logging/backend.h b/src/common/logging/backend.h
index 70744e3e5..7e81efb23 100644
--- a/src/common/logging/backend.h
+++ b/src/common/logging/backend.h
@@ -22,13 +22,16 @@ struct Entry {
std::chrono::microseconds timestamp;
Class log_class;
Level log_level;
- std::string location;
+ std::string filename;
+ unsigned int line_num;
+ std::string function;
std::string message;
Entry() = default;
Entry(Entry&& o) = default;
Entry& operator=(Entry&& o) = default;
+ Entry& operator=(const Entry& o) = default;
};
/**
@@ -44,7 +47,7 @@ const char* GetLevelName(Level log_level);
/// Creates a log entry by formatting the given source location, and message.
Entry CreateEntry(Class log_class, Level log_level, const char* filename, unsigned int line_nr,
- const char* function, const char* format, va_list args);
+ const char* function, std::string message);
void SetFilter(Filter* filter);
} // namespace Log