Luke Street
22e14d760a
Use libbacktrace for Linux/macOS
2020-12-16 07:31:39 -05:00
Luke Street
81fb4e4c2d
Link debug libnx & remove outdated nxstl includes
2020-10-21 00:35:07 -04:00
Jack Andersen
7f63cabaea
Fixes for recent windows SDK changes
2020-08-22 17:28:34 -10:00
Luke Street
41432143fd
Only use lm service when LOGVISOR_NX_LM set
2020-05-05 00:14:41 -04:00
Jack Andersen
14ea54f8b5
Add lm service for switch build
2020-05-03 20:09:21 -10:00
Jack Andersen
d62b4ce26e
Update fmtlib
2020-04-11 12:44:21 -10:00
Jack Andersen
27814c5276
Exclude CMake CXX standard from MSVC
2020-04-10 18:55:45 -10:00
Jack Andersen
f04a9777eb
Merge branch 'master' of ssh://git.axiodl.com:6431/AxioDL/logvisor
2019-09-30 21:21:21 -10:00
Jack Andersen
187c35f3c4
Ensure only one console logger is able to be registered
2019-09-30 21:20:45 -10:00
Phillip Stephens
8c2e711362
Merge pull request #5 from lioncash/noreturn
...
logvisor: Mark logvisorAbort as [[noreturn]]
2019-09-06 23:26:44 -07:00
Lioncash
63cb911d09
logvisor: Mark logvisorAbort as [[noreturn]]
...
All variants of logvisorAbort do what they say in their name -- abort.
Given control isn't returned from this function, we can signify that
it's a noreturn function
2019-09-06 07:37:27 -04:00
Phillip Stephens
f623ace3b4
Merge pull request #4 from lioncash/docs
...
logvisor: Amend documentation comments
2019-08-26 15:55:18 -07:00
Phillip Stephens
8ea97c524c
Merge pull request #3 from lioncash/forward
...
logvisor: std::forward arguments where applicable
2019-08-26 15:55:08 -07:00
Phillip Stephens
81c72ad220
Merge pull request #2 from lioncash/char
...
logvisor: Use std::fputs/std::fputc where applicable
2019-08-26 15:54:58 -07:00
Lioncash
59f651f24b
logvisor: Amend documentation comments
...
These use fmt-style formatting specifiers, not printf.
2019-08-26 10:57:19 -04:00
Lioncash
2a40c6dc92
logvisor: std::forward arguments where applicable
...
Forwards arguments into functions to preserve their value category
2019-08-26 10:50:35 -04:00
Lioncash
2f3f06e5ca
logvisor: Add missing override specifiers
2019-08-26 10:34:40 -04:00
Lioncash
94d1c558a0
logvisor: Use std::fputs/std::fputc where applicable
...
We can just use std::fputc when inserting a single character instead of
using std::fputs. Likewise, we can use std::fputs over std::fprintf when
no formatting specifiers are present.
2019-08-26 10:31:45 -04:00
Phillip Stephens
aa9aa0a82c
Merge pull request #1 from lioncash/cexpr
...
logvisor: Make Module constructor constexpr
2019-08-17 22:56:59 -07:00
Lioncash
a57409828c
logvisor: Make Module constructor constexpr
...
Allows the module instances to be constructed at compile time.
Otherwise, this is technically a runtime static constructor when an
instance is declared at file scope.
2019-08-17 19:47:20 -04:00
Jack Andersen
dcd0ffcaec
Fix custom formatting of multiple character types
2019-07-25 16:31:54 -10:00
Jack Andersen
3bedd268e8
Integrate libfmt for format strings
2019-07-19 18:21:39 -10:00
Jack Andersen
a0ef17d895
Refactor of CMake for cleaner dependency handling
2019-06-11 15:53:17 -10:00
Jack Andersen
ebe7463e67
Ignore GCC truncation warning
2019-06-09 16:48:06 -10:00
Jack Andersen
7672485d81
Make logvisor publicly link libdl on platforms that have it
2019-05-25 00:14:41 -10:00
Jack Andersen
c54e2596c2
Add cmake package config files
2019-05-22 18:07:58 -10:00
Jack Andersen
c3f34aed0b
Update include directory for proper installation
2019-05-22 17:58:40 -10:00
Jack Andersen
a2ffe70b4e
Don't kill windows console on abort
2019-05-09 18:06:21 -10:00
Jack Andersen
3da29add5f
Implicit switch fallthrough refactor
2019-02-17 19:45:51 -10:00
Jack Andersen
01e291833b
New code style refactor
2018-12-07 19:17:15 -10:00
Jack Andersen
1b6c2ae715
Convert to pragma once
2018-10-06 17:35:33 -10:00
Jack Andersen
22ed01ffc5
Add nxstl
2018-10-06 16:56:33 -10:00
Jack Andersen
79506228ad
Add nxstl mutex to logvisor
2018-09-29 12:59:14 -10:00
Jack Andersen
82f1df9c40
Use prctl on Linux to set thread name
2018-06-01 14:01:11 -10:00
Jack Andersen
2352699c65
Force console logger registration on Fatal
2018-05-26 16:17:12 -10:00
Jack Andersen
073cf1473b
Minor printf fix
2018-05-24 20:32:04 -10:00
Jack Andersen
71bbb3d082
Don't print addr2line's stderr
2018-05-05 15:30:53 -10:00
Jack Andersen
2e595922be
Add global log counter
2018-03-23 11:38:33 -10:00
Jack Andersen
bb0535f3a9
Use exit(1) instead of abort() for win32 release builds
2018-01-21 12:01:16 -10:00
Jack Andersen
b89d18c471
use exit(1) rather than abort() for release builds
2018-01-13 20:06:42 -10:00
Jack Andersen
f28fa0dbb2
Add KillProcessTree subroutine
2018-01-09 20:14:40 -10:00
Jack Andersen
beee8b3970
Use C++ standard library includes
2017-12-28 21:53:09 -10:00
Jack Andersen
408ae926d7
UWP support
2017-12-05 17:20:32 -10:00
Jack Andersen
59741b63b8
Merge branch 'master' of https://github.com/AxioDL/logvisor
2017-11-18 21:08:17 -10:00
Jack Andersen
f20a62749e
Lockless return when no loggers are registered
2017-11-18 21:07:26 -10:00
Jack Andersen
bfe0c1ccad
Fix addr2line invokation
2017-11-01 23:20:23 -10:00
Jack Andersen
f8ab0e03ba
Win32 sync
2017-01-20 14:18:50 -10:00
Jack Andersen
847d08d5b7
Proper raised abort() call
2017-01-18 23:01:09 -10:00
Jack Andersen
e6f24e6428
Better regulation of logging mutex
2017-01-18 10:54:00 -10:00
Jack Andersen
f913fb8479
Handle SIGABRT
2017-01-16 15:59:00 -10:00