forked from lastpass/lastpass-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlog.h
More file actions
26 lines (23 loc) · 637 Bytes
/
log.h
File metadata and controls
26 lines (23 loc) · 637 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef __LOG_H
#define __LOG_H
/*
* Loglevels for ~/.lpass/lpass.log. By default, nothing is logged, but
* setting LPASS_LOG_LEVEL to a positive value will turn on logging.
*
* NOTE: debug and verbose logs can include sensitive information such as
* session IDs in the clear. Do NOT post logs in public without
* scrubbing them first!
*/
enum log_level
{
LOG_NONE = -1,
LOG_ERROR = 3,
LOG_WARNING = 4,
LOG_INFO = 6,
LOG_DEBUG = 7,
LOG_VERBOSE = 8, /* _everything_ including CURL verbose logs */
};
int lpass_log_level();
void lpass_log(enum log_level level, char *fmt, ...);
FILE *lpass_log_open();
#endif