((section 2 "Outdated egg!" (p "This is an egg for CHICKEN 4, the unsupported old release.  You're almost certainly looking for " (int-link "/eggref/5/spiffy-sexpr-log" "the CHICKEN 5 version of this egg") ", if it exists.") (p "If it does not exist, there may be equivalent functionality provided by another egg; have a look at the " (link "https://wiki.call-cc.org/chicken-projects/egg-index-5.html" "egg index") ". Otherwise, please consider porting this egg to the current version of CHICKEN.") (tags "egg" "spiffy-sexpr-log")) (section 2 "spiffy-sexpr-log " (toc) (section 3 "Introduction" (p "Symbolic expression log format for Spiffy's access log")) (section 3 "Author" (p (int-link "/users/mario-domenech-goulart" "Mario Domenech Goulart"))) (section 3 "Repository" (p (link "https://github.com/mario-goulart/spiffy-sexpr-log" "https://github.com/mario-goulart/spiffy-sexpr-log"))) (section 3 "API" (p "To use this extension:") (highlight scheme "(use spiffy-sexpr-log)") (p (tt "spiffy-sexpr-log") " configures spiffy's " (tt "handle-access-logging") " parameter to set the log format to s-expressions, so you can just " (tt "read") " the log file or port to parse the log data.") (p "Notice that the default spiffy configuration doesn't log anything. You have to enable logging by using the " (tt "access-log") " parameter.") (def (sig (parameter "(split-log? [boolean])" (id split-log?))) (p "Split logs and save them according to the following directory layout:") (pre "  <year>/<month>/<day>.log") (p "Default value: " (tt "#f") "."))) (section 3 "Command line tools" (p "This egg provides two command line tools") (ul (li (tt "spiffy-log2sexpr") ": convert the default spiffy log format to the s-expression format") (li (tt "spiffy-split-sexpr-log") ": split a log in s-expression format according to what " (tt "split-log?") " would do"))) (section 3 "License" (pre " Copyright (c) 2011-2018, Mario Domenech Goulart\n All rights reserved.\n \n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions\n are met:\n 1. Redistributions of source code must retain the above copyright\n    notice, this list of conditions and the following disclaimer.\n 2. Redistributions in binary form must reproduce the above copyright\n    notice, this list of conditions and the following disclaimer in the\n    documentation and/or other materials provided with the distribution.\n 3. The name of the authors may not be used to endorse or promote products\n    derived from this software without specific prior written permission.\n \n THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS\n OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY\n DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE\n GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER\n IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR\n OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN\n IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.")) (section 3 "Version history" (section 4 "Version 0.3.2" (ul (li "Fix version for " (tt "spiffy-log2sexpr") " and " (tt "spiffy-split-sexpr-log")))) (section 4 "Version 0.3.1" (ul (li "Fix tests"))) (section 4 "Version 0.3" (ul (li "CHICKEN 5 support") (li "Add " (tt "split-log?") " parameter") (li "Add " (tt "spiffy-split-sexpr-log") " command line tool"))) (section 4 "Version 0.2" (ul (li "Meta file fix (added " (tt "category") " section)"))) (section 4 "Version 0.1" (ul (li "Initial release"))))))