logging.xml 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
  4. <!ENTITY mdash "&#x2014;" >
  5. ]>
  6. <!-- Note: Please use the following terminology:
  7. - daemon - one process (e.g. kea-dhcp4)
  8. - component - one piece of code within a daemon (e.g. libdhcp or hooks)
  9. - server - currently equal to daemon, but the difference will be more
  10. prominent once we add client or relay support
  11. - logger - one instance of isc::log::Logger
  12. - structure - an element in config file (e.g. "Dhcp4")
  13. Do not use:
  14. - module => daemon
  15. -->
  16. <chapter id="logging">
  17. <title>Logging</title>
  18. <section>
  19. <title>Logging Configuration</title>
  20. <para>
  21. During its operation Kea may produce many messages. They differ in
  22. severity (some are more important than others) and source (some are
  23. produced by specific components, e.g. hooks). It is useful to understand
  24. which log messages are needed and which are not and configure your
  25. logging appropriately. For example, debug level messages can be safely
  26. ignored in a typical deployment. They are, however, very useful when
  27. debugging a problem.
  28. </para>
  29. <para>
  30. The logging system in Kea is configured through the
  31. <replaceable>Logging</replaceable> structure in your configuration
  32. file. All daemons (e.g. DHCPv4 and DHCPv6 servers) will use the
  33. configuration in the <replaceable>Logging</replaceable> structure to see
  34. what should be logged and to where. This allows for sharing identical
  35. logging configuration between daemons.
  36. </para>
  37. <section>
  38. <title>Loggers</title>
  39. <para>
  40. Within Kea, a message is logged through an entity
  41. called a "logger". Different parts of the code log messages
  42. through different loggers, and each logger can be configured
  43. independently of one another. For example there are different
  44. components that deal with hooks ("hooks" logger) and with
  45. DHCP engine ("dhcpsrv" logger).
  46. </para>
  47. <para>
  48. In the Logging structure in a configuration file you can
  49. specify the configuration for zero or more loggers. If there are
  50. no loggers specified, the code will use default values which
  51. cause Kea to log messages on at least INFO severity to standard
  52. output.
  53. <!-- @todo: add reference to section about controlling default
  54. behavior with env. variables, after #3591 is merged. -->
  55. </para>
  56. <para>
  57. The three most important elements of a logger configuration
  58. are the <option>name</option> (the component that is
  59. generating the messages), the <option>severity</option>
  60. (what to log), and the <option>output_options</option>
  61. (where to log).
  62. </para>
  63. <section>
  64. <title>name (string)</title>
  65. <para>
  66. Each logger in the system has a name, the name being that of the
  67. component binary file using it to log messages. For instance, if you
  68. want to configure logging for the DHCPv4 server, you add an entry
  69. for a logger named <quote>kea-dhcp4</quote>. This configuration will
  70. then be used by the loggers in the DHCPv4 server, and all the
  71. libraries used by it (unless a library defines its own logger and
  72. there is specific logger configuration that applies to that logger).
  73. </para>
  74. <para>
  75. When diagnosing the problem with the server's operation it is often
  76. desired to use the DEBUG logging level to obtain the verbose output
  77. from the server and libraries it uses. However, high verbosity may
  78. be an overkill for the logging system in cases when the server
  79. is processing high volume traffic. To mitigate this problem, Kea
  80. is using multiple loggers, which can be configured independently
  81. and which are responsible for logging messages from different
  82. functional parts of the server. If the user, trying to diagnose the
  83. problem, has a reasonably high confidence that the problem origins
  84. in a specific function of the server, or the problem is related
  85. to the specific type of operation, he may enable high verbosity
  86. only for the relevant logger, thus limiting the debug messages
  87. to the required minimum.
  88. </para>
  89. <para>
  90. The loggers are associated with a particular library or binary
  91. of Kea. However, each library or binary may (and usually does)
  92. include multiple loggers. For example, the DHCPv4 server binary
  93. contains separate loggers for: packet parsing, for dropped packets,
  94. for callouts etc. Each logger "derives" its configuration from the
  95. root logger. In the typical case, the root logger configuration
  96. is the only logging configuration specified in the configuration
  97. file. Creating a specific configuration for the selected logger,
  98. thus overriding the configuration settings specified in the
  99. root logger configuration, requires putting its configuration
  100. aside of the root logger's configuration with some of the
  101. parameters modified.
  102. </para>
  103. <para>
  104. To illustrate this, suppose you are using the DHCPv4 server
  105. with the root logger <quote>kea-dhcp4</quote> logging at the
  106. INFO level. In order to enable DEBUG verbosity for the DHCPv4
  107. packet drops, you must create configuration entry for the
  108. logger called <quote>kea-dhcp4.bad-packets</quote> and specify
  109. severity DEBUG for this logger. All other configuration
  110. parameters may be omited for this logger if the logger should
  111. use the default values specified in the root logger's
  112. configuration.
  113. </para>
  114. <!-- we don't support asterisk anymore.
  115. <para>
  116. One special case is that of a component name of <quote>*</quote>
  117. (asterisks), which is interpreted as <emphasis>any</emphasis>
  118. component. You can set global logging options by using this,
  119. including setting the logging configuration for a library
  120. that is used by multiple daemons (e.g. <quote>*.config</quote>
  121. specifies the configuration library code in whatever
  122. daemon is using it).
  123. </para> -->
  124. <para>
  125. If there are multiple logger specifications in the configuration
  126. that might match a particular logger, the specification with the
  127. more specific logger name takes precedence. For example, if there
  128. are entries for both <quote>kea-dhcp4</quote> and
  129. <quote>kea-dhcp4.dhcpsrv</quote>, the DHCPv4 server &mdash; and all
  130. libraries it uses that are not dhcpsrv &mdash; will log messages
  131. according to the configuration in the first entry
  132. (<quote>kea-dhcp4</quote>).
  133. </para>
  134. <para>
  135. Currently defined loggers are:
  136. </para>
  137. <itemizedlist>
  138. <listitem>
  139. <simpara><command>kea-dhcp4</command> - this is the root logger for
  140. the DHCPv4 server. All components used by the DHCPv4 server inherit
  141. the settings from this logger if there is no specialized logger
  142. provided.</simpara>
  143. </listitem>
  144. <listitem>
  145. <simpara><command>kea-dhcp4.bad-packets</command> - this is the
  146. logger used by the DHCPv4 server deamon for logging inbound client
  147. packets that were dropped or to which the server responded with a
  148. DHCPNAK. The allows adminstrators to configure a separate log
  149. output that contains only packet drop and reject entries.</simpara>
  150. </listitem>
  151. <listitem>
  152. <simpara><command>kea-dhcp4.callouts</command> - this logger is used
  153. to log messages pertaining to the callouts registration and execution
  154. for the particular hook point.
  155. </simpara>
  156. </listitem>
  157. <listitem>
  158. <simpara><command>kea-dhcp4.ddns</command> - this logger is used by
  159. the DHCPv4 server to log messages related to the Client FQDN and
  160. Hostname option processing. It also includes log messages
  161. related to the relevant DNS updates.</simpara>
  162. </listitem>
  163. <listitem>
  164. <simpara><command>kea-dhcp4.dhcp4</command> - this is the logger
  165. by the DHCPv4 server deamon to log basic operations.</simpara>
  166. </listitem>
  167. <listitem>
  168. <simpara><command>kea-dhcp4.dhcpsrv</command> - this is a base
  169. logger for the libdhcpsrv library.</simpara>
  170. </listitem>
  171. <listitem>
  172. <simpara><command>kea-dhcp4.hooks</command> - this logger is used
  173. to log messages related to management of hooks libraries, e.g.
  174. registration and deregistration of the libraries, and to the
  175. initialization of the callouts execution for various hook points
  176. within the DHCPv4 server.</simpara>
  177. </listitem>
  178. <listitem>
  179. <simpara><command>kea-dhcp4.hosts</command> - this logger is used
  180. within the libdhcpsrv and it logs messages related to the management
  181. of the DHCPv4 host reservations, i.e. retrieval of the resevations
  182. and adding new reservations.</simpara>
  183. </listitem>
  184. <listitem>
  185. <simpara><command>kea-dhcp4.leases</command> - this logger is used
  186. by the DHCPv4 server to log messages related to the lease allocation.
  187. The messages include detailed information about the allocated or
  188. offered leases, errors during the lease allocation etc.
  189. </simpara>
  190. </listitem>
  191. <listitem>
  192. <simpara><command>kea-dhcp4.options</command> - this logger is
  193. used by the DHCPv4 server to log messages related to processing
  194. of the options in the DHCPv4 messages, i.e. parsing options,
  195. encoding options into on-wire format and packet classification
  196. using options contained in the received packets.</simpara>
  197. </listitem>
  198. <listitem>
  199. <simpara><command>kea-dhcp4.packets</command> - this logger
  200. is mostly used to log messages related to transmission of the DHCPv4
  201. packets, i.e. packet reception and sending a response. Such messages
  202. include the information about the source and destination IP addresses
  203. and interfaces used to transmit packets. This logger is also used
  204. to log messages related to subnet selection, as this selection is
  205. usually based on the IP addresses and/or interface names, which can
  206. be retrieved from the received packet, even before the DHCPv4 message
  207. carried in the packet is parsed.
  208. </simpara>
  209. </listitem>
  210. <listitem>
  211. <simpara><command>kea-dhcp6</command> - this is the root logger for
  212. the DHCPv6 server. All components used by the DHCPv6 server inherit
  213. the settings from this logger if there is no specialized logger
  214. provided.</simpara>
  215. </listitem>
  216. <listitem>
  217. <simpara><command>kea-dhcp6.bad-packets</command> - this is the
  218. logger used by the DHCPv6 server deamon for logging inbound client
  219. packets that were dropped.</simpara>
  220. </listitem>
  221. <listitem>
  222. <simpara><command>kea-dhcp6.callouts</command> - this logger is used
  223. to log messages pertaining to the callouts registration and execution
  224. for the particular hook point.
  225. </simpara>
  226. </listitem>
  227. <listitem>
  228. <simpara><command>kea-dhcp6.ddns</command> - this logger is used by
  229. the DHCPv6 server to log messages related to the Client FQDN option
  230. processing. It also includes log messages related to the relevant
  231. DNS updates.</simpara>
  232. </listitem>
  233. <listitem>
  234. <simpara><command>kea-dhcp6.dhcp6</command> - this is the logger
  235. used DHCPv6 server deamon to log basic operations.</simpara>
  236. </listitem>
  237. <listitem>
  238. <simpara><command>kea-dhcp6.dhcpsrv</command> - this is a base
  239. logger for the libdhcpsrv library.</simpara>
  240. </listitem>
  241. <listitem>
  242. <simpara><command>kea-dhcp6.hooks</command> - this logger is used
  243. to log messages related to management of hooks libraries, e.g.
  244. registration and deregistration of the libraries, and to the
  245. initialization of the callouts execution for various hook points
  246. within the DHCPv6 server.</simpara>
  247. </listitem>
  248. <listitem>
  249. <simpara><command>kea-dhcp6.hosts</command> - this logger is used
  250. within the libdhcpsrv and it logs messages related to the management
  251. of the DHCPv6 host reservations, i.e. retrieval of the resevations
  252. and adding new reservations.</simpara>
  253. </listitem>
  254. <listitem>
  255. <simpara><command>kea-dhcp6.leases</command> - this logger is used
  256. by the DHCPv6 server to log messages related to the lease allocation.
  257. The messages include detailed information about the allocated or
  258. offered leases, errors during the lease allocation etc.
  259. </simpara>
  260. </listitem>
  261. <listitem>
  262. <simpara><command>kea-dhcp6.options</command> - this logger is
  263. used by the DHCPv6 server to log messages related to processing
  264. of the options in the DHCPv6 messages, i.e. parsing options,
  265. encoding options into on-wire format and packet classification
  266. using options contained in the received packets.</simpara>
  267. </listitem>
  268. <listitem>
  269. <simpara><command>kea-dhcp6.packets</command> - this logger
  270. is mostly used to log messages related to transmission of the DHCPv6
  271. packets, i.e. packet reception and sending a response. Such messages
  272. include the information about the source and destination IP addresses
  273. and interfaces used to transmit packets. This logger is also used
  274. to log messages related to subnet selection, as this selection is
  275. usually based on the IP addresses and/or interface names, which can
  276. be retrieved from the received packet, even before the DHCPv6 message
  277. carried in the packet is parsed.
  278. </simpara>
  279. </listitem>
  280. <listitem>
  281. <simpara><command>kea-dhcp-ddns</command> - this is the root logger for
  282. the kea-dhcp-ddns deamon. All components used by this deamon inherit
  283. the settings from this logger if there is no specialized logger
  284. provided.</simpara>
  285. </listitem>
  286. <listitem>
  287. <simpara><command>kea-dhcp-ddns.dhcpddns</command> - this is the logger
  288. used solely by the kea-dhcp-ddns deamon. This logger does not
  289. specify logging settings for libraries used by the deamon.</simpara>
  290. </listitem>
  291. </itemizedlist>
  292. <para>Additional loggers may be defined in the future. The easiest
  293. way to find out the logger name is to configure all logging to go
  294. to a single destination and look for specific logger names. See
  295. <xref linkend="logging-message-format"/> for details.</para>
  296. </section>
  297. <section>
  298. <title>severity (string)</title>
  299. <para>
  300. This specifies the category of messages logged.
  301. Each message is logged with an associated severity which
  302. may be one of the following (in descending order of
  303. severity):
  304. </para>
  305. <itemizedlist>
  306. <listitem>
  307. <simpara> FATAL </simpara>
  308. </listitem>
  309. <listitem>
  310. <simpara> ERROR </simpara>
  311. </listitem>
  312. <listitem>
  313. <simpara> WARN </simpara>
  314. </listitem>
  315. <listitem>
  316. <simpara> INFO </simpara>
  317. </listitem>
  318. <listitem>
  319. <simpara> DEBUG </simpara>
  320. </listitem>
  321. </itemizedlist>
  322. <para>
  323. When the severity of a logger is set to one of these
  324. values, it will only log messages of that severity, and
  325. the severities above it. The severity may also be set to
  326. NONE, in which case all messages from that logger are
  327. inhibited.
  328. <!-- TODO: worded wrong? If I set to INFO, why would it show DEBUG which is literally below in that list? -->
  329. </para>
  330. </section>
  331. <section>
  332. <title>output_options (list)</title>
  333. <para>
  334. Each logger can have zero or more
  335. <option>output_options</option>. These specify where log
  336. messages are sent. These are explained in detail below.
  337. </para>
  338. <para>
  339. The other options for a logger are:
  340. </para>
  341. </section>
  342. <section>
  343. <title>debuglevel (integer)</title>
  344. <para>
  345. When a logger's severity is set to DEBUG, this value
  346. specifies what debug messages should be printed. It ranges
  347. from 0 (least verbose) to 99 (most verbose).
  348. </para>
  349. <!-- TODO: complete this sentence:
  350. The general classification of debug message types is
  351. TODO; there's a ticket to determine these levels, see #1074
  352. -->
  353. <para>
  354. If severity for the logger is not DEBUG, this value is ignored.
  355. </para>
  356. </section>
  357. </section>
  358. <section>
  359. <title>Output Options</title>
  360. <para>
  361. The main settings for an output option are the
  362. <option>destination</option> and a value called
  363. <option>output</option>, the meaning of which depends on
  364. the destination that is set.
  365. </para>
  366. <section>
  367. <title>destination (string)</title>
  368. <para>
  369. The destination is the type of output. It can be one of:
  370. </para>
  371. <itemizedlist>
  372. <listitem>
  373. <simpara> console </simpara>
  374. </listitem>
  375. <listitem>
  376. <simpara> file </simpara>
  377. </listitem>
  378. <listitem>
  379. <simpara> syslog </simpara>
  380. </listitem>
  381. </itemizedlist>
  382. </section>
  383. <section>
  384. <title>output (string)</title>
  385. <para>
  386. This value determines the type of output. There are several
  387. special values allowed here: <command>stdout</command> (messages
  388. are printed on standard output), <command>stderr</command>
  389. (messages are printed on stderr), <command>syslog</command> (messages
  390. are logged to syslog using default name, <command>syslog:name</command>
  391. (messages are logged to syslog using specified name). Any other
  392. value is interpreted as a filename that the logs should be written to.
  393. </para>
  394. <para>
  395. The other options for <option>output_options</option> are:
  396. </para>
  397. <!-- configuration of flush is not supported yet.
  398. <section>
  399. <title>flush (true of false)</title>
  400. <para>
  401. Flush buffers after each log message. Doing this will
  402. reduce performance but will ensure that if the program
  403. terminates abnormally, all messages up to the point of
  404. termination are output.
  405. </para>
  406. </section> -->
  407. <section>
  408. <title>maxsize (integer)</title>
  409. <para>
  410. Only relevant when destination is file, this is maximum
  411. file size of output files in bytes. When the maximum
  412. size is reached, the file is renamed and a new file opened.
  413. (For example, a ".1" is appended to the name &mdash;
  414. if a ".1" file exists, it is renamed ".2",
  415. etc.)
  416. </para>
  417. <para>
  418. If this is 0, no maximum file size is used.
  419. </para>
  420. <note>
  421. <simpara>
  422. Due to a limitation of the underlying logging library
  423. (log4cplus), rolling over the log files (from ".1" to
  424. ".2", etc) may show odd results: There can be
  425. multiple small files at the timing of roll over. This
  426. can happen when multiple processes try to roll
  427. over the files simultaneously.
  428. Version 1.1.0 of log4cplus solved this problem, so if
  429. this or higher version of log4cplus is used to build
  430. Kea, it shouldn't happen. Even for older versions
  431. it is normally expected to happen rarely unless the log
  432. messages are produced very frequently by multiple
  433. different processes.
  434. </simpara>
  435. </note>
  436. </section>
  437. <section>
  438. <title>maxver (integer)</title>
  439. <para>
  440. Maximum number of old log files to keep around when
  441. rolling the output file. Only relevant when
  442. <option>output</option> is <quote>file</quote>.
  443. </para>
  444. </section>
  445. </section>
  446. </section>
  447. <section>
  448. <title>Example Logger Configurations</title>
  449. <para>
  450. In this example we want to set the global logging to
  451. write to the console using standard output.
  452. </para>
  453. <screen><userinput>
  454. "Logging": {
  455. "loggers": [
  456. {
  457. "name": "kea-dhcp4",
  458. "output_options": [
  459. {
  460. "output": "stdout"
  461. }
  462. ],
  463. "severity": "WARN"
  464. }
  465. ]
  466. }
  467. </userinput>
  468. </screen>
  469. <para>In this second example, we want to store debug log messages
  470. in a file that is at most 2MB and keep up to 8 copies of old logfiles.
  471. Once the logfile grows to 2MB, it will be renamed and a new file
  472. file be created.</para>
  473. <screen><userinput>
  474. "Logging": {
  475. "loggers": [
  476. {
  477. "name": "kea-dhcp6",
  478. "output_options": [
  479. {
  480. "output": "/var/log/kea-debug.log",
  481. "maxver": 8,
  482. "maxsize": 204800,
  483. "destination": "file"
  484. }
  485. ],
  486. "severity": "DEBUG",
  487. "debuglevel": 99
  488. }
  489. ]
  490. }</userinput></screen>
  491. </section>
  492. </section>
  493. <section id="logging-message-format">
  494. <title>Logging Message Format</title>
  495. <para>
  496. Each message written to the configured logging
  497. destinations comprises a number of components that identify
  498. the origin of the message and, if the message indicates
  499. a problem, information about the problem that may be
  500. useful in fixing it.
  501. </para>
  502. <para>
  503. Consider the message below logged to a file:
  504. <screen>2014-04-11 12:58:01.005 INFO [kea-dhcp4.dhcpsrv/27456]
  505. DHCPSRV_MEMFILE_DB opening memory file lease database: type=memfile universe=4</screen>
  506. </para>
  507. <para>
  508. Note: the layout of messages written to the system logging
  509. file (syslog) may be slightly different. This message has
  510. been split across two lines here for display reasons; in the
  511. logging file, it will appear on one line.
  512. </para>
  513. <para>
  514. The log message comprises a number of components:
  515. <variablelist>
  516. <varlistentry>
  517. <term>2014-04-11 12:58:01.005</term>
  518. <!-- TODO: timestamp repeated even if using syslog? -->
  519. <listitem><para>
  520. The date and time at which the message was generated.
  521. </para></listitem>
  522. </varlistentry>
  523. <varlistentry>
  524. <term>INFO</term>
  525. <listitem><para>
  526. The severity of the message.
  527. </para></listitem>
  528. </varlistentry>
  529. <varlistentry>
  530. <term>[kea-dhcp4.dhcpsrv/27456]</term>
  531. <listitem><para>
  532. The source of the message. This comprises two elements:
  533. the Kea process generating the message (in this
  534. case, <command>kea-dhcp4</command>) and the component
  535. within the program from which the message originated
  536. (which is the name of the common library used by DHCP server
  537. implementations). The number after the slash is a process id
  538. (pid).
  539. </para></listitem>
  540. </varlistentry>
  541. <varlistentry>
  542. <term>DHCPSRV_MEMFILE_DB</term>
  543. <listitem><para>
  544. The message identification. Every message in Kea
  545. has a unique identification, which can be used as an
  546. index into the <ulink
  547. url="kea-messages.html"><citetitle>Kea Messages
  548. Manual</citetitle></ulink> (<ulink
  549. url="http://kea.isc.org/docs/kea-messages.html"
  550. />) from which more information can be obtained.
  551. </para></listitem>
  552. </varlistentry>
  553. <varlistentry>
  554. <term>opening memory file lease database: type=memfile universe=4</term>
  555. <listitem><para>
  556. A brief description.
  557. Within this text, information relating to the condition
  558. that caused the message to be logged will be included.
  559. In this example, the information is logged that the in-memory
  560. lease database backend will be used to store DHCP leases.
  561. </para></listitem>
  562. </varlistentry>
  563. </variablelist>
  564. </para>
  565. </section>
  566. <section>
  567. <title>Logging During Kea Startup</title>
  568. <para>
  569. The logging configuration is specified in the configuration file.
  570. However, when Kea starts, the file is not read until some way into the
  571. initialization process. Prior to that, the logging settings are
  572. set to default values, although it is possible to modify some
  573. aspects of the settings by means of environment variables. Note
  574. that in the absence of any logging configuration in the configuration
  575. file, the settings of (possibly modified) default configuration will
  576. persist while the program is running.
  577. </para>
  578. <para>
  579. The following environment variables can be used to control the
  580. behavio of logging during startup:
  581. </para>
  582. <variablelist>
  583. <varlistentry>
  584. <term>KEA_LOCKFILE_DIR</term>
  585. <listitem><para>
  586. Specifies a directory where the logging system should create its
  587. lock file. If not specified, it is
  588. <replaceable>prefix</replaceable>/var/run/kea, where
  589. <replaceable>prefix</replaceable> defaults to /usr/local.
  590. This variable must not end
  591. with a slash. There is one special value: "none", which
  592. instructs Kea to not create lock file at all. This may cause
  593. issues if several processes log to the same file.
  594. </para></listitem>
  595. </varlistentry>
  596. <varlistentry>
  597. <term>KEA_LOGGER_DESTINATION</term>
  598. <listitem><para>
  599. Specifies logging output. There are several special values.
  600. <variablelist>
  601. <varlistentry>
  602. <term>stdout</term>
  603. <listitem><para>
  604. Log to standard output.
  605. </para></listitem>
  606. </varlistentry>
  607. <varlistentry>
  608. <term>stderr</term>
  609. <listitem><para>
  610. Log to standard error.
  611. </para></listitem>
  612. </varlistentry>
  613. <varlistentry>
  614. <term>syslog<optional>:<replaceable>fac</replaceable></optional></term>
  615. <listitem><para>
  616. Log via syslog. The optional
  617. <replaceable>fac</replaceable> (which is
  618. separated from the word "syslog" by a colon)
  619. specifies the
  620. facility to be used for the log messages. Unless
  621. specified, messages will be logged using the
  622. facility "local0".
  623. </para></listitem>
  624. </varlistentry>
  625. </variablelist>
  626. Any other value is treated as a name
  627. of the output file. If not specified otherwise, Kea will log to
  628. standard output.
  629. </para></listitem>
  630. </varlistentry>
  631. </variablelist>
  632. </section>
  633. </chapter>