60 | | The layer1transport service uses the file `/home/openflow/floodlight/conf/logback.xml`, which by default is a symlink that points to `logback_file.xml`. This default configuration logs to a file at `/var/log/floodlight.log`. To use this default config, you must first create the logfile as follows: |
| 60 | The layer1transport service reads in the floodlight logging config from the file `/home/openflow/floodlight/conf/logback.xml`, which by default is a symlink that points to `logback_file.xml`. |
| 61 | |
| 62 | ==== 5.a Logging to a file ==== |
| 63 | This requires using `logback_file.xml`, which configures floodlight to log to a file at `/var/log/floodlight.log`. To use this config, you must first create the logfile with the appropriate permissions as follows: |
67 | | If you want to change which configuration you use, or if you want to use an alternate configuration, make modifications now. |
| 70 | ==== 5.b. Logging to syslog ==== |
| 71 | To log floodlight messages to syslog, just change the `logback.xml` symlink as follows: |
| 72 | {{{ |
| 73 | sudo -u openflow rm /home/openflow/floodlight/conf/logback.xml |
| 74 | sudo -u openflow ln -s /home/openflow/floodlight/conf/logback_syslog.xml /home/openflow/floodlight/conf/logback.xml |
| 75 | }}} |
| 76 | |
| 77 | ==== 5.c. Logging to stdout ==== |
| 78 | To log floodlight messages to stdout instead of a file, just change the `logback.xml` symlink as follows: |
| 79 | {{{ |
| 80 | sudo -u openflow rm /home/openflow/floodlight/conf/logback.xml |
| 81 | sudo -u openflow ln -s /home/openflow/floodlight/conf/logback_stdout.xml /home/openflow/floodlight/conf/logback.xml |
| 82 | }}} |