logger_support.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright (C) 2010 Internet Systems Consortium, Inc. ("ISC")
  2. //
  3. // Permission to use, copy, modify, and/or distribute this software for any
  4. // purpose with or without fee is hereby granted, provided that the above
  5. // copyright notice and this permission notice appear in all copies.
  6. //
  7. // THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
  8. // REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  9. // AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
  10. // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  11. // LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  12. // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  13. // PERFORMANCE OF THIS SOFTWARE.
  14. #ifndef __LOGGER_SUPPORT_H
  15. #define __LOGGER_SUPPORT_H
  16. #include <log/logger.h>
  17. namespace isc {
  18. namespace log {
  19. /// \brief Run-Time Initialization
  20. ///
  21. /// This code will be used until the logger is fully integrated into the BIND-10
  22. /// configuration database. It performs run-time initialization of the logger,
  23. /// in particular supplying run-time choices to it:
  24. ///
  25. /// * The severity (and if applicable, debug level) at which to log
  26. /// * Name of a local message file, containing localisation of message text.
  27. ///
  28. /// \param severity Severity at which to log
  29. /// \param dbglevel Debug severiy (ignored if "severity" is not "DEBUG")
  30. /// \param file Name of the local message file.
  31. void runTimeInit(isc::log::Severity severity, int dbglevel, const char* file);
  32. } // namespace log
  33. } // namespace isc
  34. #endif // __LOGGER_SUPPORT_H