<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/log.c, branch master</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=master</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2024-07-18T06:44:30Z</updated>
<entry>
<title>log: respect the NO_COLOR environment variable</title>
<updated>2024-07-18T06:44:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-07-18T06:41:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=36e4435bbfbb1a10724e0161f0ca1c0b8bf1bc7c'/>
<id>urn:sha1:36e4435bbfbb1a10724e0161f0ca1c0b8bf1bc7c</id>
<content type='text'>
http://no-color.org/

Closes #1771
</content>
</entry>
<entry>
<title>log: fix syslog not respecting the configured log level</title>
<updated>2024-04-05T14:19:24Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2024-04-05T14:19:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=4f1aaccf812b5ed5f1cf12184ac970b396519f23'/>
<id>urn:sha1:4f1aaccf812b5ed5f1cf12184ac970b396519f23</id>
<content type='text'>
</content>
</entry>
<entry>
<title>util: add streq() function and use in place of strcmp(...) == 0</title>
<updated>2024-02-05T11:09:52Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2024-01-24T23:17:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e0f3703ae6c4084f9275cfc78d87e5604cc27a10'/>
<id>urn:sha1:e0f3703ae6c4084f9275cfc78d87e5604cc27a10</id>
<content type='text'>
</content>
</entry>
<entry>
<title>log: don’t default to syslog enabled</title>
<updated>2022-12-02T10:45:10Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-12-02T10:45:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b43a41df6a5a72b22b6c16d5ac45d0d66a9d5207'/>
<id>urn:sha1:b43a41df6a5a72b22b6c16d5ac45d0d66a9d5207</id>
<content type='text'>
Initialize the global ‘do_syslog’ variable to false. This ensures any
log calls done before log_init() has been called (e.g. unit tests)
doesn’t syslog anything.

As a side effect, such log calls no longer open an implicit syslog
file descriptor; this is how this “bug” was found: valgrind detected
an unclosed file descriptor at exit.

Finally, completely disable syslogging if log-level is “none”.
</content>
</entry>
<entry>
<title>log: simplify Boolean logic for setting "colorize" var in log_init()</title>
<updated>2021-09-15T15:18:05Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-09-15T15:18:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=ed0ef4bb1dd2b6a110a3bebe73bdfbe8b254675d'/>
<id>urn:sha1:ed0ef4bb1dd2b6a110a3bebe73bdfbe8b254675d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>log: add LOG_CLASS_NONE and use as initializer for log_level</title>
<updated>2021-06-26T21:15:09Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-06-26T21:15:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5dca0458a09ebc586fda49c50533976f055d8de2'/>
<id>urn:sha1:5dca0458a09ebc586fda49c50533976f055d8de2</id>
<content type='text'>
This means that logging will be completely disabled until log_init()
has been called, which is useful to prevent log spam when running
UNITTEST{} blocks in debug builds.

Note that this doesn't change the default log level at runtime, which
was already being set to LOG_CLASS_INFO in main.c and client.c.

The new log level is also exposed to the command-line interface as
`--log-level=none`, which allows disabling logging entirely.
</content>
</entry>
<entry>
<title>log: add va_list versions of log_* functions</title>
<updated>2021-05-07T14:52:56Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-05-07T14:40:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cda55d7de41c5cd5bd0ec42fa4f7500f8c763825'/>
<id>urn:sha1:cda55d7de41c5cd5bd0ec42fa4f7500f8c763825</id>
<content type='text'>
</content>
</entry>
<entry>
<title>errno: don’t use ‘_errno’ as a variable name; _ are reserved for use as identifiers</title>
<updated>2021-02-21T19:33:07Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-21T19:33:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=555f751f94a7efa90f03713a876f41f2424ea9f0'/>
<id>urn:sha1:555f751f94a7efa90f03713a876f41f2424ea9f0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main: client: factor out some common code for "--log-level" option</title>
<updated>2021-02-11T11:08:18Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-02-11T11:08:18Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5437321f97e21a3fc6fca79fbdf05ca8d6199b35'/>
<id>urn:sha1:5437321f97e21a3fc6fca79fbdf05ca8d6199b35</id>
<content type='text'>
</content>
</entry>
<entry>
<title>log: log-level applies to messages logged to stderr too</title>
<updated>2021-02-09T19:54:17Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-09T19:54:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=208014d6c9b396f4a4e070180ac63a22090c20d2'/>
<id>urn:sha1:208014d6c9b396f4a4e070180ac63a22090c20d2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>debug: rename assert() to xassert(), to avoid clashing with &lt;assert.h&gt;</title>
<updated>2021-01-16T20:16:00Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-01-16T20:16:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e56136ce1192d04a52b01ccb41284f0b7896430e'/>
<id>urn:sha1:e56136ce1192d04a52b01ccb41284f0b7896430e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Print stack trace on assert() failure or when calling fatal_error()</title>
<updated>2021-01-16T19:56:33Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-01-15T20:39:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=22f25a9e4feddbc093ae01cd53bdda3c2c3a82e9'/>
<id>urn:sha1:22f25a9e4feddbc093ae01cd53bdda3c2c3a82e9</id>
<content type='text'>
Note: this uses the __sanitizer_print_stack_trace() function from the
AddressSanitizer runtime, so it only works when AddressSanitizer is
in use.
</content>
</entry>
<entry>
<title>Replace GCC "unused" and "format" attributes with portable macros</title>
<updated>2020-08-07T19:42:34Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2020-08-07T19:42:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7eb70a453b4ea797d9e85017c6deab6a7bc903a6'/>
<id>urn:sha1:7eb70a453b4ea797d9e85017c6deab6a7bc903a6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>log: simplify _sys_log() function</title>
<updated>2020-08-06T22:31:21Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2020-08-06T22:13:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8541ce10a2b48439b7b1f9ef5bbacc1224444fdd'/>
<id>urn:sha1:8541ce10a2b48439b7b1f9ef5bbacc1224444fdd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Replace non-portable "\e" escape in string literals with "\033"</title>
<updated>2020-08-02T22:54:04Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2020-08-02T22:54:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=11a1d99da732cad13995dcbfc04b6559b5255d01'/>
<id>urn:sha1:11a1d99da732cad13995dcbfc04b6559b5255d01</id>
<content type='text'>
</content>
</entry>
<entry>
<title>log: always log file:lineno</title>
<updated>2020-02-16T13:40:08Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-16T13:40:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=cea75625e209ba02179af24b735235b346663208'/>
<id>urn:sha1:cea75625e209ba02179af24b735235b346663208</id>
<content type='text'>
</content>
</entry>
<entry>
<title>main: add --print-pid=FILE|FD</title>
<updated>2020-02-05T18:54:16Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-05T18:54:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=82b8853f17b943901776eddcb857089384a61dda'/>
<id>urn:sha1:82b8853f17b943901776eddcb857089384a61dda</id>
<content type='text'>
When specified, our PID is written to the specified file (or FD),
after we've successfully started up.
</content>
</entry>
<entry>
<title>log: log to stderr, not stdout</title>
<updated>2020-02-04T17:29:04Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-02-04T17:29:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=d7d2aae0537984faafb1f9b9aedded3e48bb5941'/>
<id>urn:sha1:d7d2aae0537984faafb1f9b9aedded3e48bb5941</id>
<content type='text'>
</content>
</entry>
<entry>
<title>log: caller can control syslog level</title>
<updated>2019-12-17T18:07:28Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-12-17T18:07:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a0fcec3a3d147f8d347af8f5fb2004b4a310b358'/>
<id>urn:sha1:a0fcec3a3d147f8d347af8f5fb2004b4a310b358</id>
<content type='text'>
</content>
</entry>
<entry>
<title>log: set syslog facility to LOG_DAEMON when run in server mode</title>
<updated>2019-11-20T18:43:31Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-11-20T18:43:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=55a23a5b290140816a7f7c215ef90c8af1cb82ef'/>
<id>urn:sha1:55a23a5b290140816a7f7c215ef90c8af1cb82ef</id>
<content type='text'>
</content>
</entry>
</feed>
