|
@@ -7,6 +7,8 @@ namespace Core::Logger {
|
|
|
enum class Level { ERROR, WARNING, INFO, DEBUG };
|
|
|
extern Level level;
|
|
|
|
|
|
+ const char* getFileName(const char* path);
|
|
|
+
|
|
|
inline bool filterError(Error e) {
|
|
|
return e != Error::NONE && e != Error::CAPACITY_REACHED;
|
|
|
}
|
|
@@ -18,7 +20,7 @@ namespace Core::Logger {
|
|
|
if(Core::Logger::level < l) {
|
|
|
return;
|
|
|
}
|
|
|
- file = Core::getFileName(file);
|
|
|
+ file = getFileName(file);
|
|
|
Core::String32<2048> s;
|
|
|
if(filterError(s.append(start)) || filterError(s.append("#:# | ")) ||
|
|
|
filterError(s.format(file, line)) || filterError(s.append(format)) ||
|