nea_debug.c 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. * This file is part of the Sofia-SIP package
  3. *
  4. * Copyright (C) 2005 Nokia Corporation.
  5. *
  6. * Contact: Pekka Pessi <pekka.pessi@nokia.com>
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Lesser General Public License
  10. * as published by the Free Software Foundation; either version 2.1 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This library 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 GNU
  16. * 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 this library; if not, write to the Free Software
  20. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  21. * 02110-1301 USA
  22. *
  23. */
  24. /*
  25. */
  26. /*
  27. * This file is part of the Sofia-SIP package
  28. *
  29. * Copyright (C) 2005 Nokia Corporation.
  30. *
  31. * Contact: Pekka Pessi <pekka.pessi@nokia.com>
  32. *
  33. * This library is free software; you can redistribute it and/or
  34. * modify it under the terms of the GNU Lesser General Public License
  35. * as published by the Free Software Foundation; either version 2.1 of
  36. * the License, or (at your option) any later version.
  37. *
  38. * This library is distributed in the hope that it will be useful, but
  39. * WITHOUT ANY WARRANTY; without even the implied warranty of
  40. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  41. * Lesser General Public License for more details.
  42. *
  43. * You should have received a copy of the GNU Lesser General Public
  44. * License along with this library; if not, write to the Free Software
  45. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  46. * 02110-1301 USA
  47. *
  48. */
  49. /**@CFILE nea_debug.c Debug Log for Nokia Event Client API
  50. *
  51. * @author Pekka Pessi <Pekka.Pessi@nokia.com>
  52. *
  53. */
  54. #include <stddef.h>
  55. #include "nea_debug.h"
  56. /**@var NEA_DEBUG
  57. *
  58. * Environment variable determining the debug log level for @b nea
  59. * module.
  60. *
  61. * The NEA_DEBUG environment variable is used to determine the debug
  62. * logging level for @b nea module. The default level is 3.
  63. *
  64. * @sa <sofia-sip/su_debug.h>, nea_log, SOFIA_DEBUG
  65. */
  66. extern char const NEA_DEBUG[];
  67. #ifndef SU_DEBUG
  68. #define SU_DEBUG 3
  69. #endif
  70. /**Debug log for @b nea module.
  71. *
  72. * The nea_log is the log object used by @b nea module. The level of
  73. * #nea_log is set using #NEA_DEBUG environment variable.
  74. */
  75. su_log_t nea_log[] = { SU_LOG_INIT("nea", "NEA_DEBUG", SU_DEBUG) };