Include dependency graph for mutt_logging.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| int | log_disp_curses (time_t stamp, const char *file, int line, const char *function, enum LogLevel level, const char *format,...) __attribute__((__format__(__printf__ |
| int void | mutt_log_prep (void) |
| Prepare to log. | |
| int | mutt_log_start (void) |
| Enable file logging. | |
| void | mutt_log_stop (void) |
| Close the log file. | |
| int | mutt_log_set_level (enum LogLevel level, bool verbose) |
| Change the logging level. | |
| int | mutt_log_set_file (const char *file) |
| Change the logging file. | |
| int | main_log_observer (struct NotifyCallback *nc) |
| Notification that a Config Variable has changed - Implements observer_t -. | |
| int | level_validator (const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
| Validate the "debug_level" config variable - Implements ConfigDef::validator() -. | |
| void | mutt_clear_error (void) |
| Clear the message line (bottom line of screen) | |
NeoMutt Logging.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file mutt_logging.h.
| int log_disp_curses | ( | time_t | stamp, |
| const char * | file, | ||
| int | line, | ||
| const char * | function, | ||
| enum LogLevel | level, | ||
| const char * | format, | ||
| ... ) |
Here is the call graph for this function:| int void mutt_log_prep | ( | void | ) |
Prepare to log.
Definition at line 171 of file mutt_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int mutt_log_start | ( | void | ) |
Enable file logging.
| 0 | Success, or already running |
| -1 | Failed to start |
This also handles file rotation.
Definition at line 248 of file mutt_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_log_stop | ( | void | ) |
Close the log file.
Definition at line 181 of file mutt_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int mutt_log_set_level | ( | enum LogLevel | level, |
| bool | verbose ) |
Change the logging level.
| level | Logging level |
| verbose | If true, then log the event |
| 0 | Success |
| -1 | Error, level is out of range |
Definition at line 226 of file mutt_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int mutt_log_set_file | ( | const char * | file | ) |
Change the logging file.
| file | Name to use |
| 0 | Success, file opened |
| -1 | Error, see errno |
Close the old log, rotate the new logs and open the new log.
Definition at line 195 of file mutt_logging.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void mutt_clear_error | ( | void | ) |
Clear the message line (bottom line of screen)
Definition at line 74 of file mutt_logging.c.
Here is the call graph for this function: