Commit Graph

218 Commits (master)

Author SHA1 Message Date
Richard Mudgett 6896886580 Merged revisions 334954 via svnmerge from
14 years ago
Alec L Davis 369ea4e7ef log Asterisk Version number, Build etc into each log file
14 years ago
Kinsey Moore baa2d1d891 Merged revisions 331654 via svnmerge from
14 years ago
Richard Mudgett 9d785ca5f3 Merged revisions 331462 via svnmerge from
14 years ago
Jason Parker f01e9568d2 Merged revisions 307092 via svnmerge from
14 years ago
Paul Belanger 3556e4c2d4 Replace ast_log(LOG_DEBUG, ...) with ast_debug()
14 years ago
Tilghman Lesher 793b68b082 Support an alternate configuration file for the 'logger reload' command.
15 years ago
Tilghman Lesher b98e47d119 Merged revisions 298960 via svnmerge from
15 years ago
Jeff Peeler 78bd0de1a9 Add support for several platforms to obtain the real thread ID.
15 years ago
Russell Bryant c0ddaa38d1 Merged revisions 287863 via svnmerge from
15 years ago
Brett Bryant 2b1b1c9693 Merged revisions 287639 via svnmerge from
15 years ago
Tilghman Lesher 046a2dc3b1 Merged revisions 279390 via svnmerge from
15 years ago
Tilghman Lesher 82448ad7d2 Separate queue_log arguments into separate fields, and allow the text file to be used, even when realtime is used.
15 years ago
Tilghman Lesher c7293780b8 Remove lines from the output related to the backtrace itself.
15 years ago
Kevin P. Fleming 33ba94eb0b Ensure that 'logger show channels' works properly when wildcards are used in logger.conf.
15 years ago
Tilghman Lesher 5d313f51b9 Merged revisions 269635 via svnmerge from
15 years ago
Tilghman Lesher fb80119b87 Merged revisions 266142 via svnmerge from
15 years ago
Kevin P. Fleming 2aa0c11679 Correct 'all logger levels' patch to work properly.
15 years ago
Kevin P. Fleming e77efbc12e Add ability for logger channels to include *all* levels.
15 years ago
Leif Madsen d2e1f421fa CLI command logger set level auto complete.
15 years ago
Tilghman Lesher 4e1e6820db Merged revisions 248582 via svnmerge from
15 years ago
Tilghman Lesher ba10edfcac Initialize a variable that we check immediately upon startup.
16 years ago
Sean Bright 0c99f79a76 Correct the return value check for ast_safe_system.
16 years ago
Russell Bryant 0264eef115 Merge the new Channel Event Logging (CEL) subsystem.
16 years ago
Sean Bright 4535305772 Move syslog utility functions into a separate file so they can be re-used.
16 years ago
Sean Bright ca3a181c33 Pass a logmsg to ast_log_vsyslog instead of separate arguments.
16 years ago
Kevin P. Fleming 82fb56886e More 'static' qualifiers on module global variables.
16 years ago
Joshua Colp ea89db8ce0 Fix an incorrect call to ast_string_field_free_memory which caused a crash in the logger.
16 years ago
Kevin P. Fleming d1e0b11343 Add ability for modules to dynamically register logger levels
16 years ago
Tilghman Lesher c524f905a6 Two fixes found while debugging with ast_backtrace():
16 years ago
Kevin P. Fleming 7893ab8fe7 Merged revisions 193193 via svnmerge from
16 years ago
Kevin P. Fleming a3af213506 Remove rarely-used event_log/LOG_EVENT support
16 years ago
Kevin P. Fleming b8b4d01b06 Fix an error in queue_log file rotation optimization code
16 years ago
Russell Bryant cba19c8a67 Convert the ast_channel data structure over to the astobj2 framework.
16 years ago
Kevin P. Fleming 2f048030bd revert addition of LOG_SECURITY log channel; after further discussion, a much better solution will be used
16 years ago
Kevin P. Fleming b5f8c632df add a dedicated log channel for modules to be able report security-related events, so that they can be fed into external processes for analysis and possible mitigation efforts
16 years ago
Mark Michelson e32921415f Assist proper thread synchronization when stopping the logger thread.
16 years ago
Matthew Nicholson 23755124ba Added a comment to logger.c about where to put includes
17 years ago
Matthew Nicholson f42c44449a Use ast_safe_system() in logger.c instead of system()
17 years ago
Tilghman Lesher c8223fc957 Merge ast_str_opaque branch (discontinue usage of ast_str internals)
17 years ago
Eliel C. Sardanons 1e8e12efcf Janitor, use ARRAY_LEN() when possible.
17 years ago
Kevin P. Fleming 887e28d7aa incorporates r159808 from branches/1.4:
17 years ago
Terry Wilson d66a8cd264 Fix checking for CONFIG_STATUS_FILEINVALID so that modules don't crash upon trying to parse an invalid config
17 years ago
Tilghman Lesher afb571ba8f Starting with a change to ensure that ast_verbose() preserves ABI compatibility
17 years ago
Kevin P. Fleming bd4eb070f3 bring over all the fixes for the warnings found by gcc 4.3.x from the 1.4 branch, and add the ones needed for all the new code here too
17 years ago
Sean Bright 790fde68d9 Another batch of files from RSW. The remaining apps and a few more
17 years ago
Kevin P. Fleming fd845ffb5e minor change to test automerge
17 years ago
Mark Michelson 115937b7a6 Print the correct PID in log messages. Prior to
17 years ago
Tilghman Lesher e9bd35a0fe Fix rotate strategy
17 years ago
Brett Bryant d185405755 Janitor project to convert sizeof to ARRAY_LEN macro.
17 years ago
Luigi Rizzo e2807b69a3 use %p to print a pointer
17 years ago
Michiel van Baak 8e8359465b Older versions of GNU gcc do not allow 'NULL' as sentinel.
17 years ago
Russell Bryant 8b0ea3a76d Do a deep copy of file and function strings to avoid a potential crash when
17 years ago
Brett Bryant 5b8e1963c5 Adds support for changing logger settingss on remote consoles with a
17 years ago
Mark Michelson 975a848b67 A new feature thanks to the fine folks at Switchvox!
17 years ago
Mark Michelson 1b8f183ca3 This change makes it so that logs will report the correct source of verbose messages.
17 years ago
Joshua Colp 83e37eaf1c The logger closes the files it is logging to when reloading so we have to read in the logger configuration even if it has not changed so that the logs get opened again.
17 years ago
Tilghman Lesher e82b7365b7 Merged revisions 115333 via svnmerge from
17 years ago
Tilghman Lesher 123ac5fd64 Standardized routines for forking processes (keeps all the specialized code in one place).
17 years ago
Tilghman Lesher ef4eff9a9b Add the "config reload <conffile>" command, which allows you to tell Asterisk
17 years ago
Joshua Colp 760fc3403c Make sure values are interpreted as character strings and not format strings.
17 years ago
Tilghman Lesher cfc1df4c1a Whitespace changes only
17 years ago
Joshua Colp c81350d6f6 Just some minor coding style cleanup...
17 years ago
Mark Michelson fe9821cc10 Get rid of any remaining ast_verbose calls in the code in favor of
17 years ago
Tilghman Lesher 8fd1e10d3d Normalize the detection for execinfo, so that Linux (glibc) and other platforms
17 years ago
Mark Michelson 00d848c94e Adding support for storing the queue log entries in a realtime backend.
18 years ago
Mark Michelson 4f75e15665 After reading Russell's e-mail to the dev list stating that checking option_verbose is not
18 years ago
Tilghman Lesher 99308dfb4e Conversions of free to ast_free, where applicable, and several other formatting fixes.
18 years ago
Olle Johansson 9f1c4887fa Doxygen updates
18 years ago
Olle Johansson 9dc965eadd Merged revisions 91366 via svnmerge from
18 years ago
Luigi Rizzo e0ff5fef5c remove a bunch of useless #include "options.h"
18 years ago
Luigi Rizzo a23c055c3d move asterisk/paths.h outside asterisk.h and into those files
18 years ago
Luigi Rizzo 915b97d300 move internal function declarations to include/asterisk/_private.h
18 years ago
Luigi Rizzo 9335ace850 another bunch of include removals (errno.h and asterisk/logger.h)
18 years ago
Luigi Rizzo 0595b5e2aa include "logger.h" and errno.h from asterisk.h - usage shows that they
18 years ago
Luigi Rizzo 5490960453 remove a bunch of duplicate includes
18 years ago
Luigi Rizzo fdb7f7ba3d Start untangling header inclusion in a way that does not affect
18 years ago
Luigi Rizzo 7f8ecd2cd3 make the 'name' and 'value' fields in ast_variable const char *
18 years ago
Kevin P. Fleming edc78d6023 improve linked-list macros in two ways:
18 years ago
Steve Murphy 63f2f04cf4 This commits the performance mods that give the priority processing engine in the pbx, a 25-30% speed boost. The two updates used, are, first, to merge the ast_exists_extension() and the ast_spawn_extension() where they are called sequentially in a loop in the code, into a slightly upgraded version of ast_spawn_extension(), with a few extra args; and, second, I modified the substitute_variables_helper_full, so it zeroes out the byte after the evaluated string instead of demanding you pre-zero the buffer; I also went thru the code and removed the code that zeroed this buffer before every call to the substitute_variables_helper_full. The first fix provides about a 9% speedup, and the second the rest. These figures come from the 'PIPS' benchmark I describe in blogs, conf. reports, etc.
18 years ago
Jason Parker ebe4050128 Switch from AST_CLI (formerly NEW_CLI) to AST_CLI_DEFINE, since the former didn't make much sense
18 years ago
Jason Parker b0f3e6097e Convert NEW_CLI to AST_CLI.
18 years ago
Joshua Colp d19257304e Process outstanding log messages before shutting down the logger thread.
18 years ago
Jason Parker c7a9ec1691 (issue #10724)
18 years ago
Tilghman Lesher 43adcde7bf Always force reread of the config when we're rotating the log file (closes issue #10598)
18 years ago
Joshua Colp f4fa5a228a Add some read/write locking magic to make logger reload operate again.
18 years ago
Tilghman Lesher f5a14167f3 Support better rotation of log files to be more like system logging (closes issue #10398)
18 years ago
Tilghman Lesher 56b9568164 Don't reload a configuration file if nothing has changed.
18 years ago
Mark Michelson 57d5d489a7 Merged revisions 77380 via svnmerge from
18 years ago
Tilghman Lesher 03c973ab2d Merged revisions 77350 via svnmerge from
18 years ago
Tilghman Lesher 620a5a11e4 Merged revisions 77348 via svnmerge from
18 years ago
Russell Bryant f1f72312bb (closes issue #10192)
18 years ago
Tilghman Lesher 4af3f12b29 Reduce some logging contention by switching several locks over to rwlocks
18 years ago
Tilghman Lesher 81bc1d7af5 Merge in ast_strftime branch, which changes timestamps to be accurate to the microsecond, instead of only to the second
18 years ago
Joshua Colp 2c52ab7afb Fix -T option. (issue #10073 reported by xylome)
18 years ago
Russell Bryant 80166c6de8 Conversions to ast_debug()
18 years ago
Tilghman Lesher a1bc823136 Issue 9990 - New API ast_mkdir, which creates parent directories as necessary (and is faster than an outcall to mkdir -p)
18 years ago
Kevin P. Fleming 5fdba27ea2 Merged revisions 69392 via svnmerge from
18 years ago
Joshua Colp 6fc5c73f78 Output verbose messages to the normal logger as well. (issue #9476 reported by gdalgliesh)
18 years ago
Tilghman Lesher 058ec10e42 Merged revisions 59078 via svnmerge from
18 years ago
Joshua Colp 746e139e6d Flush out the file pointer. (issue #9115 reported by guthrie)
18 years ago
Joshua Colp 21b53af31d Cosmetic changes. Make main source files better conform to coding guidelines and standards. (issue #8679 reported by johann8384)
19 years ago
Kevin P. Fleming adca0ff14b Merged revisions 49006 via svnmerge from
19 years ago
Joshua Colp 8e9cdb10fd Merge non-blocking logger from my branch. This should improve things under heavy load with lots of CLI/logging output.
19 years ago
Luigi Rizzo 684e4dc373 debugging shows that we always need more than 128 bytes
19 years ago
Luigi Rizzo 055abfe9d9 simplify the ast_dynamic_str_*.... routines by
19 years ago
Matt O'Gorman b025702287 safe terminal output is sweet.
19 years ago
Luigi Rizzo ce68e30a07 remove many unnecessary casts
19 years ago
Tilghman Lesher 10875731ec Merged revisions 47051 via svnmerge from
19 years ago
Russell Bryant bd53e7ee4c Extend the thread storage API such that a custom initialization function can
19 years ago
Matt O'Gorman ae8cc3e18b bug #8076 check option_debug before printing to debug channel.
19 years ago
Joshua Colp e5203bb283 Add option to logger to rename log files with timestamp (issue #8020 reported by jmls)
19 years ago
Jason Parker fe1a3b8877 Add optional queue_log_name config option for logger.conf, to change the
19 years ago
Tilghman Lesher 2b55678e1f Remove deprecated CLI apps from the core
19 years ago
Tilghman Lesher 70af28270d Constify the result of a config retrieval function, to avoid mutilation (issue 7983).
19 years ago
Kevin P. Fleming fcb999c01c merge qwell's CLI verbification work
19 years ago
Steve Murphy 11a7e38930 Made changes corresponding to those in 1.2 here in main/logger.c for bug 7544.
19 years ago
Kevin P. Fleming 0a27d8bfe5 merge new_loader_completion branch, including (at least):
19 years ago