Salad
1.0.15
Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
include
salad
log.h
Go to the documentation of this file.
1
/*
2
* Salad - An assortment of useful C stuff
3
* Copyright (C) 2016 Lloyd Dilley
4
* http://www.dilley.me/
5
*
6
* This file is part of Salad.
7
*
8
* Salad is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU Lesser General Public License
10
* as published by the Free Software Foundation; either version
11
* 3 of the License, or (at your option) any later version.
12
*
13
* Salad is distributed in the hope that it will be useful, but
14
* WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU Lesser General Public License for more details.
17
*
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with Salad. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
24
#ifndef LOG_H
25
#define LOG_H
26
27
#include "
salad/types.h
"
28
36
typedef
enum
{
DBUG
= 0,
INFO
= 1,
WARN
= 2,
CRIT
= 3 }
sld_log_severity
;
37
49
SLD_SSINT
sld_log_write
(
const
char
*file_name,
sld_log_severity
severity,
const
char
*text);
50
53
#endif
/* LOG_H */
types.h
CRIT
Definition:
log.h:36
SLD_SSINT
signed short int SLD_SSINT
Definition:
types.h:47
WARN
Definition:
log.h:36
sld_log_severity
sld_log_severity
Definition:
log.h:36
DBUG
Definition:
log.h:36
sld_log_write
SLD_SSINT sld_log_write(const char *file_name, sld_log_severity severity, const char *text)
Writes the specified text to the provided log file with the given severity.
Definition:
log.c:32
INFO
Definition:
log.h:36
Generated on Fri Apr 28 2017 22:23:46 for Salad by
1.8.5