Changes between Version 12 and Version 13 of Layer1Transport/Install


Ignore:
Timestamp:
07/31/13 17:07:22 (6 years ago)
Author:
tupty@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Layer1Transport/Install

    v12 v13  
    5555There are three reference logback configurations distributed with this software:
    5656 * `/home/openflow/floodlight/conf/logback_file.xml`: logs floodlight messages to `/var/log/floodlight.log`
     57 * `/home/openflow/floodlight/conf/logback_syslog.xml`: logs floodlight messages to syslog system
    5758 * `/home/openflow/floodlight/conf/logback_stdout.xml`: logs floodlight messages to stdout
    58  * `/home/openflow/floodlight/conf/logback_syslog.xml`: logs floodlight messages to syslog system
    5959
    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:
     60The 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 ====
     63This 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:
    6164{{{
    6265sudo touch /var/log/floodlight.log
     
    6568}}}
    6669
    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 ====
     71To log floodlight messages to syslog, just change the `logback.xml` symlink as follows:
     72{{{
     73sudo -u openflow rm /home/openflow/floodlight/conf/logback.xml
     74sudo -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 ====
     78To log floodlight messages to stdout instead of a file, just change the `logback.xml` symlink as follows:
     79{{{
     80sudo -u openflow rm /home/openflow/floodlight/conf/logback.xml
     81sudo -u openflow ln -s /home/openflow/floodlight/conf/logback_stdout.xml /home/openflow/floodlight/conf/logback.xml
     82}}}
    6883
    6984=== 6. Create flows files ===