Scott Anderson
bcde223129
Remove __PRETTY_FUNCTION__
...
This is a non-standard extension as well as completely useless in C.
__func__ is the standard way of doing this.
6 years ago
emersion
63b4bf5000
Update for swaywm/wlroots#1126
7 years ago
Tony Crisci
6becfc1431
update log.h for latest wlr
7 years ago
Dominique Martinet
d4ddfec32e
common/log: finish removing most log functions
...
Keep sway_abort and sway_assert and convert them to use wlr_log
functions
7 years ago
Dominique Martinet
67985e9031
sway: change all sway_log to wlr_log
7 years ago
Jerzi Kaminsky
8ecb490679
Make sway_abort() report location
8 years ago
Jerzi Kaminsky
709b53bd43
Fix location reported by sway_assert
8 years ago
Jerzi Kaminsky
eb3b1ec5f1
Fix variadic forwarding in sway_assert
...
_sway_assert is a variadic function which tries
to delegate to another variadic function. This
requires a vprintf-style variant of the delegate.
https://stackoverflow.com/a/150616
8 years ago
Drew DeVault
ad7f68585b
Always log filename and line number
8 years ago
David Eklov
26842ff383
Add get_log_level() to encapsulate v (current log level)
...
This patch also makes all global variable in log.c static.
9 years ago
Eric Engestrom
cc9d1cacbb
common: refactor sway_log()
...
This removes most preprocessor logic, leaving it only it the header.
9 years ago
Drew DeVault
e0cb8284fb
Rearrange logging headers
...
Ref #270
9 years ago
Drew DeVault
d729032ba2
Add file and line number to log in Debug build
9 years ago
S. Christoffer Eliesen
9f02b0bf16
commands: Learn 'debuglog'.
...
Replicates i3 option. Verbosity level given as command line argument
becomes default log level, and using 'debuglog toggle' switches back and
forth between default and debug (or L_ERROR and debug if default is also
L_DEBUG).
9 years ago
S. Christoffer Eliesen
5a70853253
log: Add swayc_log, use at a few key places.
...
swayc_log works just like sway_log, but appends type and name from given
container to the log output.
9 years ago
taiyu
1fa7a91bfb
move_container_to fixup
9 years ago
Luminarys
7c5b6f8c52
Added in backtrace printing
9 years ago
minus
8dfaf6265b
fixed #108 signed/unsigned comparison
9 years ago
minus
773e85c681
properly handle IPC clients
9 years ago
taiyu
c5a6982893
fixed some more bugs, moved layout_log into log.ch, restored focus_parent
9 years ago
minus
faccaf6112
added sway_assert function
...
returns false on a failed assertion in release mode and raises SIGABRT in debug mode
9 years ago
taiyu
c024f06631
handle_view_state_request
9 years ago
Drew DeVault
7f8ebb7d0d
Move headers to include/
9 years ago