Peter Bell
3189a3cbee
Update logging code to reduce unnecessary string copying:
...
* Write into a single fmt::memory_buffer
* Use string_view instead of AString for listener callbacks
* Also collapsed vFLOG and vLOG functions into one per formatting type
2020-05-16 09:39:05 +01:00
peterbell10
57952505e5
Update fmt to 6.2.0 ( #4718 )
...
* Update fmt to 6.2.0
2020-05-05 22:52:14 +01:00
peterbell10
757231cc6e
Add the fmt library ( #4065 )
...
* Replaces AppendVPrintf with fmt::sprintf
* fmt::ArgList now used as a type safe alternative to varargs.
* Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu.
* Adds FLOG functions to log with fmt's native formatting style.
2018-01-03 17:41:16 +00:00
LogicParrot
ca6ef58b1e
Bulk clearing of whitespace
2016-02-05 23:50:18 +02:00
Mattes D
ad57ce5f99
Extended and fixed the cFile API.
2015-09-26 22:54:18 +02:00
Mattes D
7379848ae5
Moved AString reading hack to cFile.
2015-07-31 08:48:22 +02:00
tycho
6cccd2aabb
Properly fix cFile Warnings
2015-05-19 13:33:34 +01:00
tycho
f2689c4887
Fixed a lot of warnings
2015-05-19 11:50:59 +01:00
Mattes D
c13b1931ff
More style checking.
...
Spaces around some operators are checked.
2015-05-09 12:58:54 +02:00
Mattes D
8d4a87d2c4
Fixed bindings for cFile:ReadWholeFile().
...
Fixes #1914
2015-04-30 11:44:42 +02:00
Mattes D
c4842cb9aa
Added more cFile API functions.
...
GetLastModificationTime, GetPathSeparator() and GetExecutableExt()
2015-04-11 10:06:08 +02:00
Mattes D
6952f2295a
Added cFile:ChangeFileExt() function.
2015-04-06 22:00:54 +02:00
Mattes D
1b9c0f1030
Removed cFile::ReplaceFileNameInvalidChars().
...
Its only usage in cProtocol18 has been changed to a simple string replace - only the IPv6's colons were causing problems.
2015-01-27 14:53:34 +01:00
Mattes D
f1f12495b2
cFile: Added ReplaceFileNameInvalidChars().
2015-01-27 14:53:29 +01:00
madmaxoft
10e58f04da
Fixed windows compilation and style issues.
2014-08-12 22:43:04 +02:00
Tycho
806d0936dc
First Implementatation of new Loggin framework
2014-08-10 19:34:11 +01:00
Tycho
a42480cf82
Template Magic
...
Removed need to allocate a fake meta block by using templates to provide a version
of the code that does not use metas. Also changed the function to a template
argument to make sure that the compilier is able to inline it.
2014-04-28 10:31:07 -07:00
Tycho
cd6ab5617c
Fixed xofts issues
2014-03-14 06:11:49 -07:00
Tycho
53faac10c5
Added macros to follow format string checking through wrappers
2014-03-11 13:41:15 -07:00
madmaxoft
5aa3fc4c56
Added cFile::Flush().
...
This is useful when using cFile as a log file and we know the server may crash after a specific write, so we flush the file before continuing.
2014-01-25 15:27:34 +01:00
Alexander Harkness
c3cd436ec3
Merge remote-tracking branch 'origin/master' into foldermove2
...
Conflicts:
GNUmakefile
2013-11-24 14:37:03 +00:00
Alexander Harkness
675b4aa878
Moved source to src
2013-11-24 14:19:41 +00:00