Documentation ¶
Overview ¶
Contains log related stuff.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // Name is the name of the application Name = "kraul" // CfgFilename is the name of the configuration file for the application. CfgFilename = "cfg.toml" )
var ( CfgLog = "log" DefaultLogFile = "/var/log/kraul.log" )
Variables for configuration entries, or just hard code them.
var Cfg = contour.AppCfg()
Cfg is the Application cfg, or just call contour's functions.
Functions ¶
func Index ¶
Index indexes the site at the starturl. URLs not in the startUrl domain are not crawled
func SetCfg ¶
func SetCfg() error
SetCfg initialized the application's configuration. When the config is has been initialized, the preset-enivronment variables, application defaults, and your application's configuration file, should it have one, will all be merged according to the setting properties.
After this, only overrides can occur via command flags.
func SetLogging ¶
func SetLogging() error
SetLog sets up logging, if it is enabled to stdout. At this point, the only overrides to logging will occur with CLI args. If the CLI args have any logging related flags, those will be processed and logging will be updated.
Types ¶
This section is empty.