Add $vocab-subsection
parent
c51ad0aa5a
commit
e933cf97fe
|
@ -55,6 +55,8 @@ M: f vocab-docs-loaded? ;
|
||||||
|
|
||||||
M: f set-vocab-docs-loaded? 2drop ;
|
M: f set-vocab-docs-loaded? 2drop ;
|
||||||
|
|
||||||
|
M: f vocab-help ;
|
||||||
|
|
||||||
: create-vocab ( name -- vocab )
|
: create-vocab ( name -- vocab )
|
||||||
dictionary get [ <vocab> ] cache ;
|
dictionary get [ <vocab> ] cache ;
|
||||||
|
|
||||||
|
|
|
@ -144,20 +144,32 @@ M: f print-element drop ;
|
||||||
: $link ( element -- )
|
: $link ( element -- )
|
||||||
first ($link) ;
|
first ($link) ;
|
||||||
|
|
||||||
: ($subsection) ( object -- )
|
: ($long-link) ( object -- )
|
||||||
[ article-title ] keep >link write-object ;
|
dup article-title swap >link write-link ;
|
||||||
|
|
||||||
: $subsection ( element -- )
|
: ($subsection) ( element quot -- )
|
||||||
[
|
[
|
||||||
subsection-style get [
|
subsection-style get [
|
||||||
bullet get write bl
|
bullet get write bl
|
||||||
first ($subsection)
|
call
|
||||||
] with-style
|
] with-style
|
||||||
] ($block) ;
|
] ($block) ; inline
|
||||||
|
|
||||||
: ($vocab-link) ( vocab -- ) dup f >vocab-link write-link ;
|
: $subsection ( element -- )
|
||||||
|
[ first ($long-link) ] ($subsection) ;
|
||||||
|
|
||||||
: $vocab-link ( element -- ) first ($vocab-link) ;
|
: ($vocab-link) ( text vocab -- ) f >vocab-link write-link ;
|
||||||
|
|
||||||
|
: $vocab-subsection ( element -- )
|
||||||
|
[
|
||||||
|
first2 dup vocab-help dup [
|
||||||
|
2nip ($long-link)
|
||||||
|
] [
|
||||||
|
drop ($vocab-link)
|
||||||
|
] if
|
||||||
|
] ($subsection) ;
|
||||||
|
|
||||||
|
: $vocab-link ( element -- ) first dup ($vocab-link) ;
|
||||||
|
|
||||||
: $vocabulary ( element -- )
|
: $vocabulary ( element -- )
|
||||||
first word-vocabulary [
|
first word-vocabulary [
|
||||||
|
|
|
@ -27,7 +27,7 @@ HELP: schedule-insomniac
|
||||||
{ $values { "alist" "a sequence of pairs of shape " { $snippet "{ service word-names }" } } }
|
{ $values { "alist" "a sequence of pairs of shape " { $snippet "{ service word-names }" } } }
|
||||||
{ $description "Starts a thread which e-mails log reports and rotates logs daily." } ;
|
{ $description "Starts a thread which e-mails log reports and rotates logs daily." } ;
|
||||||
|
|
||||||
ARTICLE: "logging.insomniac" "Automating log analysis and rotation"
|
ARTICLE: "logging.insomniac" "Automated log analysis"
|
||||||
"The " { $vocab-link "logging.insomniac" } " vocabulary builds on the " { $vocab-link "logging.analysis" } " vocabulary. It provides support for e-mailing log reports and rotating logs on a daily basis. E-mails are sent using the " { $vocab-link "smtp" } " vocabulary."
|
"The " { $vocab-link "logging.insomniac" } " vocabulary builds on the " { $vocab-link "logging.analysis" } " vocabulary. It provides support for e-mailing log reports and rotating logs on a daily basis. E-mails are sent using the " { $vocab-link "smtp" } " vocabulary."
|
||||||
$nl
|
$nl
|
||||||
"Required configuration parameters:"
|
"Required configuration parameters:"
|
||||||
|
|
|
@ -115,9 +115,9 @@ ARTICLE: "logging" "Logging framework"
|
||||||
{ $subsection "logging.levels" }
|
{ $subsection "logging.levels" }
|
||||||
{ $subsection "logging.messages" }
|
{ $subsection "logging.messages" }
|
||||||
{ $subsection "logging.rotation" }
|
{ $subsection "logging.rotation" }
|
||||||
{ $subsection "logging.parser" }
|
{ $vocab-subsection "Log file parser" "logging.parser" }
|
||||||
{ $subsection "logging.analysis" }
|
{ $vocab-subsection "Log analysis" "logging.analysis" }
|
||||||
{ $subsection "logging.insomniac" }
|
{ $vocab-subsection "Automated log analysis" "logging.insomniac" }
|
||||||
{ $subsection "logging.server" } ;
|
{ $subsection "logging.server" } ;
|
||||||
|
|
||||||
ABOUT: "logging"
|
ABOUT: "logging"
|
||||||
|
|
Loading…
Reference in New Issue