summaryrefslogtreecommitdiffstats
path: root/modules/loggers (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Length computed by count_string() are accumulated in an apr_size_t, so be ↵Christophe Jaillet2022-05-041-2/+2
| | | | | | more consistent and use this data type also in this function. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1900564 13f79535-47bb-0310-9956-ffa450edef68
* APR 1.3 is a requirement for building httpd 2.4 and above.Christophe Jaillet2022-01-221-7/+1
| | | | | | So this compatibility test can be removed. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897329 13f79535-47bb-0310-9956-ffa450edef68
* * mod_log_config/mod_ssl: moved the log_handlers registered by mod_sslStefan Eissing2021-05-181-0/+37
| | | | | | | | | | | | into mod_log_config itself. These now use the global `ap_ssl_var_lookup()` functions and work for all running SSL modules. The dependency from mod_ssl to mod_log_config and its header is removed. mod_ssl now provides the content of "{errstr}c" as variable "SSL_CLIENT_VERIFY_ERRSTR". This change should be fully compatible to all deployed configurations. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1890003 13f79535-47bb-0310-9956-ffa450edef68
* *) core: provide ap_ssl_* functions in new http_ssl.h header file.Stefan Eissing2021-03-261-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1888083 13f79535-47bb-0310-9956-ffa450edef68
* Using the new ap_ssl_conn_is_ssl() and ap_ssl_var_lookup() in all internal ↵Stefan Eissing2021-03-091-12/+5
| | | | | | | | | | | | modules. * leaving mod_nw_ssl and mod_ssl itself untouched * removing mod_ssl.h includes where no longer necessary * some modules might skip post_config hooks, but those were left in, even when empty now. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1887364 13f79535-47bb-0310-9956-ffa450edef68
* Merge 2 loops in order to save a few cycles.Christophe Jaillet2020-08-011-3/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1880501 13f79535-47bb-0310-9956-ffa450edef68
* Declare pre_translate hook in lua/info/log_debug/example modules, and docs.Yann Ylavic2020-06-221-0/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1879077 13f79535-47bb-0310-9956-ffa450edef68
* Include Angle-bracket form to Quoted formSteffen Land2020-05-141-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1877740 13f79535-47bb-0310-9956-ffa450edef68
* Add Win build mod_log_json.dspSteffen Land2020-05-121-0/+111
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1877630 13f79535-47bb-0310-9956-ffa450edef68
* Add missing pool tags to help debugging.Yann Ylavic2020-04-161-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876599 13f79535-47bb-0310-9956-ffa450edef68
* core: add r->flushed flag and set it when the response is sent.Yann Ylavic2020-04-021-0/+5
| | | | | | | | | | | | | | | | | | | By setting EOR->r->flushed in the core output filter, allow one to determine at log_transaction hook time whether the request has been fully flushed through the network, or not (network issue, filter error, n-th pipelined resposne...). Introduce the ap_bucket_eor_request() helper to get the request bound to an EOR bucket, and uses it in ap_core_output_filter() to mark the EOR's request just before destroying it, after all the previous buckets have been sent. While at it, rename the request_rec* member of struct ap_bucket_eor from "data" to "r", which makes the code clearer (not to be confused with b->data). Finally, add CustomLog format %F, showing "F" or "-" depending on r->flushed, for admins to figure out for each request. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876017 13f79535-47bb-0310-9956-ffa450edef68
* * modules/loggers/config.m4: Don't override shared/staticJoe Orton2020-01-141-4/+0
| | | | | | | selection for mod_journald, mod_syslog and mod_log_json. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1872779 13f79535-47bb-0310-9956-ffa450edef68
* * modules/loggers/config.m4, modules/md/config2.m4, acinclude.m4:Joe Orton2020-01-141-0/+1
| | | | | | | | | | Correctly link mod_md and mod_log_json (and no other objects) against -ljansson. Removes unnecessary deps on libjansson from other linked objects, and fixes mod_md static build. (see https://travis-ci.org/apache/httpd/jobs/636789380) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1872776 13f79535-47bb-0310-9956-ffa450edef68
* Fix to allow the logging of SSL_CIPHER variable (instead of SSL_COPHER)Christophe Jaillet2019-08-101-1/+1
| | | | | | (reported by eric-therond in GitHub issue #60) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1864834 13f79535-47bb-0310-9956-ffa450edef68
* Follow up to r1856490: missing one mod_log_forensic test_char_table case.Yann Ylavic2019-03-281-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1856491 13f79535-47bb-0310-9956-ffa450edef68
* Provide TEST_CHAR marco in test_char.hYann Ylavic2019-03-281-1/+1
| | | | | | | | For (internal) usage outside server/util.c, mod_log_forensic for now and mod_cache (T_HTTP_TOKEN_STOP) in a few... git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1856490 13f79535-47bb-0310-9956-ffa450edef68
* mod_log_json: fixing compilation errors in maintainer mode.Stefan Eissing2018-04-281-3/+19
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1830417 13f79535-47bb-0310-9956-ffa450edef68
* Add mod_log_jsonPaul Querna2018-04-232-0/+180
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1829898 13f79535-47bb-0310-9956-ffa450edef68
* mod_logio: Add LogIOTrackTTFU and %^FU logformatRainer Jung2018-04-091-2/+83
| | | | | | | | to log the time difference between request start and last request body byte read (finished upload). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1828727 13f79535-47bb-0310-9956-ffa450edef68
* * modules/loggers/mod_logio.c (logio_pre_config): Remove pointlessJoe Orton2018-02-021-1/+1
| | | | | | | | | | static in optional fn pointer variable declaration. * modules/ssl/ssl_engine_vars.c (ssl_var_log_config_register): Likewise. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1822931 13f79535-47bb-0310-9956-ffa450edef68
* mod_journald: work around possible use of "inline" keyword in systemd #include.Yann Ylavic2017-10-171-4/+12
| | | | | | | This fails to compile before c99, override with APR_INLINE. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1812339 13f79535-47bb-0310-9956-ffa450edef68
* Support use of optional "tag" in syslog entries. Streamline the patch.Jim Jagielski2017-02-241-6/+26
| | | | | | PR 60525. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1784318 13f79535-47bb-0310-9956-ffa450edef68
* https://bz.apache.org/bugzilla/show_bug.cgi?id=58855Jim Jagielski2017-01-091-1/+1
| | | | | | | Optimize check for empty strings git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1778067 13f79535-47bb-0310-9956-ffa450edef68
* Fix spelling in comments and text files.Rainer Jung2016-08-111-1/+1
| | | | | | | | No functional change. PR 59990 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1756038 13f79535-47bb-0310-9956-ffa450edef68
* Rename ap_casecmpstr[n]() to ap_cstr_casecmp[n](), update with APR doxygenWilliam A. Rowe Jr2016-06-091-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1747469 13f79535-47bb-0310-9956-ffa450edef68
* Support %{c}h for conn-hostname, %h for useragent_hostWilliam A. Rowe Jr2016-02-121-3/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1730129 13f79535-47bb-0310-9956-ffa450edef68
* Remove new APLOGNO form mod_log_debug.Rainer Jung2016-01-191-2/+4
| | | | | | | | Here we log the custom log messages provided by the user. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1725468 13f79535-47bb-0310-9956-ffa450edef68
* Added many log numbers to log statements thatRainer Jung2016-01-191-2/+4
| | | | | | | | | | | had none. Handled all files in modules/. I used the coccinelle script provided by Stefan. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1725392 13f79535-47bb-0310-9956-ffa450edef68
* Follow up to r1715880: revert more abusive ap_casecmpstr[n]() usages.Yann Ylavic2015-12-291-10/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1722150 13f79535-47bb-0310-9956-ffa450edef68
* More ap_casecmpstr[n]() usages (follow up to r1715876).Yann Ylavic2015-11-231-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715880 13f79535-47bb-0310-9956-ffa450edef68
* Use new ap_casecmpstr[n]() functions where appropriate (not exhaustive).Yann Ylavic2015-11-231-13/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715876 13f79535-47bb-0310-9956-ffa450edef68
* Revert r1715789: will re-commit without spurious functional changes.Yann Ylavic2015-11-231-13/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715869 13f79535-47bb-0310-9956-ffa450edef68
* Use new ap_casecmpstr[n]() functions where appropriate (not exhaustive).Yann Ylavic2015-11-231-13/+13
| | | | | | | [Reverted by r1715869] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715789 13f79535-47bb-0310-9956-ffa450edef68
* Remove some useless 'return' statements.Christophe Jaillet2015-11-211-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715568 13f79535-47bb-0310-9956-ffa450edef68
* Revert r1705157: why not "insert the filter (twice) for sub-requests" actually?Yann Ylavic2015-09-241-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1705160 13f79535-47bb-0310-9956-ffa450edef68
* Follow up to r1705134: don't insert the filter (twice) for sub-requests.Yann Ylavic2015-09-241-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1705157 13f79535-47bb-0310-9956-ffa450edef68
* Avoid storing request stuff in r->connection->conn_config toEric Covener2015-09-241-33/+43
| | | | | | | | avoid problems with e.g. write completion. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1705134 13f79535-47bb-0310-9956-ffa450edef68
* Don't count initial handshake I/O when determining the first byte.Eric Covener2015-09-241-9/+7
| | | | | | | | | | | | PR58454 Submitted By: Konstantin J. Chernov Committed By: covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1705099 13f79535-47bb-0310-9956-ffa450edef68
* Silence a sparse warning about inconsistent indenting + some minor style issuesChristophe Jaillet2015-08-311-4/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1700331 13f79535-47bb-0310-9956-ffa450edef68
* Follow-up to r1680895:Jeff Trawick2015-05-211-12/+12
| | | | | | | | Let %T be the format character which accepts time resolution arguments. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1680942 13f79535-47bb-0310-9956-ffa450edef68
* mod_log_config: instead of using the new dedicatedRainer Jung2015-05-211-12/+18
| | | | | | | | | | | | | | | | | | pattern format "%M" for duration milliseconds, overload the existing "%D" to choose the time precision ("%{s}D" for seconds, "%{ms}D" for milliseconds and "%{us}D" for microseconds). The existing %T and %D without precision are kept for compatibility. The previously introduced "%M" (r1677187) is removed, it has not yet been released. Format pattern characters are rare, so we should only use a new one if an existing one isn't a good fit. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1680895 13f79535-47bb-0310-9956-ffa450edef68
* const goodnessJeff Trawick2015-05-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1677489 13f79535-47bb-0310-9956-ffa450edef68
* * mod_journald: Remove JournaldCustomLog. It is not needed now whenJan Kaluža2015-04-241-76/+1
| | | | | | | mod_log_config can use mod_journald as errorlog provider. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1675797 13f79535-47bb-0310-9956-ffa450edef68
* * mod_journald: use -lsystemd instead of -lsystemd-journald when foundJan Kaluža2015-04-231-4/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1675701 13f79535-47bb-0310-9956-ffa450edef68
* mod_log_config: Fix a bug introduced by r1674261, when using a log providerBen Reser2015-04-231-2/+2
| | | | | | | the return of ap_default_log_writer was an uninitialized variable. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1675534 13f79535-47bb-0310-9956-ffa450edef68
* mod_log_config: Add %M format to output request duration in milliseconds.Ben Reser2015-04-231-0/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1675533 13f79535-47bb-0310-9956-ffa450edef68
* * mod_log_config: Allow using ErrorLog providers for CustomLog.Jan Kaluža2015-04-171-3/+96
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1674261 13f79535-47bb-0310-9956-ffa450edef68
* Use 'unsigned int' in bitfieldChristophe Jaillet2015-04-131-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1673113 13f79535-47bb-0310-9956-ffa450edef68
* allow time to first byte (of response headers)Eric Covener2015-04-071-3/+72
| | | | | | | | | | | | to be logged by mod_logio. mod_logio was just a conveninent place to do this w/o writing a new filter or complicating an existing important one. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1671918 13f79535-47bb-0310-9956-ffa450edef68
* Fix styleChristophe Jaillet2014-11-111-4/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1638188 13f79535-47bb-0310-9956-ffa450edef68