nclog.h 892 B

12345678910111213141516171819202122232425262728293031
  1. /*********************************************************************
  2. * Copyright 2010, UCAR/Unidata
  3. * See netcdf/COPYRIGHT file for copying and redistribution conditions.
  4. * $Header$
  5. *********************************************************************/
  6. #ifndef NCLOG_H
  7. #define NCLOG_H
  8. #define ENVFLAG "NCLOGFILE"
  9. /* Suggested tag values */
  10. #define NCLOGNOTE 0
  11. #define NCLOGWARN 1
  12. #define NCLOGERR 2
  13. #define NCLOGDBG 3
  14. extern void ncloginit(void);
  15. extern void ncsetlogging(int tf);
  16. extern void nclogopen(const char* file);
  17. extern void nclogclose(void);
  18. /* The tag value is an arbitrary integer */
  19. extern void nclog(int tag, const char* fmt, ...);
  20. extern void nclogtext(int tag, const char* text);
  21. extern void nclogtextn(int tag, const char* text, size_t count);
  22. /* Provide printable names for tags */
  23. extern void nclogsettags(char** tagset, char* dfalt);
  24. #endif /*NCLOG_H*/