aboutsummaryrefslogtreecommitdiffstats
path: root/include/log.h
Commit message (Collapse)AuthorAge
* Use -fmacro-prefix-map to strip build pathLibravatar Manuel Stoeckl2019-07-15
| | | | | | | | | | | | | | Because meson does not provide a simple way to get the relative build path, it is computed with a pair of foreach loops. As meson does not have a simple way to compute string length (except via underscorify and 63 split operations), the build script uses a shell command instead. If the compiler does not suppot -fmacro-prefix-map, then fall back to passing in the relative path prefix, and use its length to offset the uses of __FILE__ in log messages so that the build path is at least still not included in the logs. This is significantly more efficient than calling _sway_strip_path.
* Replace wlr_log with sway_logLibravatar M Stoeckl2019-01-21
| | | | | | | | | | | | | This commit mostly duplicates the wlr_log functions, although with a sway_* prefix. (This is very similar to PR #2009.) However, the logging function no longer needs to be replaceable, so sway_log_init's second argument is used to set the exit callback for sway_abort. wlr_log_init is still invoked in sway/main.c This commit makes it easier to remove the wlroots dependency for the helper programs swaymsg, swaybg, swaybar, and swaynag.
* Remove __PRETTY_FUNCTION__Libravatar Scott Anderson2018-09-06
| | | | | This is a non-standard extension as well as completely useless in C. __func__ is the standard way of doing this.
* Update for swaywm/wlroots#1126Libravatar emersion2018-07-09
|
* update log.h for latest wlrLibravatar Tony Crisci2018-02-24
|
* common/log: finish removing most log functionsLibravatar Dominique Martinet2018-01-05
| | | | | Keep sway_abort and sway_assert and convert them to use wlr_log functions
* sway: change all sway_log to wlr_logLibravatar Dominique Martinet2018-01-05
|
* Make sway_abort() report locationLibravatar Jerzi Kaminsky2017-04-20
|
* Fix location reported by sway_assertLibravatar Jerzi Kaminsky2017-04-16
|
* Fix variadic forwarding in sway_assertLibravatar Jerzi Kaminsky2017-04-16
| | | | | | | | _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
* Always log filename and line numberLibravatar Drew DeVault2016-12-15
|
* Add get_log_level() to encapsulate v (current log level)Libravatar David Eklov2016-06-27
| | | | This patch also makes all global variable in log.c static.
* common: refactor sway_log()Libravatar Eric Engestrom2016-05-02
| | | | This removes most preprocessor logic, leaving it only it the header.
* Rearrange logging headersLibravatar Drew DeVault2015-11-28
| | | | Ref #270
* Add file and line number to log in Debug buildLibravatar Drew DeVault2015-11-11
|
* commands: Learn 'debuglog'.Libravatar S. Christoffer Eliesen2015-10-27
| | | | | | | 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).
* log: Add swayc_log, use at a few key places.Libravatar S. Christoffer Eliesen2015-10-25
| | | | | swayc_log works just like sway_log, but appends type and name from given container to the log output.
* move_container_to fixupLibravatar taiyu2015-08-26
|
* Added in backtrace printingLibravatar Luminarys2015-08-24
|
* fixed #108 signed/unsigned comparisonLibravatar minus2015-08-21
|
* properly handle IPC clientsLibravatar minus2015-08-20
|
* fixed some more bugs, moved layout_log into log.ch, restored focus_parentLibravatar taiyu2015-08-19
|
* added sway_assert functionLibravatar minus2015-08-18
| | | | returns false on a failed assertion in release mode and raises SIGABRT in debug mode
* handle_view_state_requestLibravatar taiyu2015-08-16
|
* Move headers to include/Libravatar Drew DeVault2015-08-16