source: XIOS/dev/dev_olga/src/extern/src_netcdf4/nclog.h @ 1022

Last change on this file since 1022 was 1022, checked in by mhnguyen, 7 years ago
File size: 892 bytes
Line 
1/*********************************************************************
2 *   Copyright 2010, UCAR/Unidata
3 *   See netcdf/COPYRIGHT file for copying and redistribution conditions.
4 *   $Header$
5 *********************************************************************/
6
7#ifndef NCLOG_H
8#define NCLOG_H
9
10#define ENVFLAG "NCLOGFILE"
11
12/* Suggested tag values */
13#define NCLOGNOTE 0
14#define NCLOGWARN 1
15#define NCLOGERR 2
16#define NCLOGDBG 3
17
18extern void ncloginit(void);
19extern void ncsetlogging(int tf);
20extern void nclogopen(const char* file);
21extern void nclogclose(void);
22
23/* The tag value is an arbitrary integer */
24extern void nclog(int tag, const char* fmt, ...);
25extern void nclogtext(int tag, const char* text);
26extern void nclogtextn(int tag, const char* text, size_t count);
27
28/* Provide printable names for tags */
29extern void nclogsettags(char** tagset, char* dfalt);
30
31#endif /*NCLOG_H*/
Note: See TracBrowser for help on using the repository browser.