Package com.norconex.crawler.core.util
Class LogUtil
java.lang.Object
com.norconex.crawler.core.util.LogUtil
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidlogCommandIntro(@NonNull Logger logger, @NonNull CrawlerConfig crawlConfig) static voidsetMdcCrawlerId(String crawlerId) Sets two representations of the supplied crawler ID to the Mapped Diagnostic Context (MDC) for logging implementations supporting it:
-
Field Details
-
MDC_CRAWLER_ID
- See Also:
-
MDC_CRAWLER_ID_SAFE
- See Also:
-
-
Method Details
-
setMdcCrawlerId
Sets two representations of the supplied crawler ID to the Mapped Diagnostic Context (MDC) for logging implementations supporting it:
-
crawler.id→ the crawler id, as supplied. -
crawler.id.safe→ the crawler id encoded to be safe to use as filename on any file system, as perFileUtil.
- Parameters:
crawlerId- crawler id
-
-
logCommandIntro
public static void logCommandIntro(@NonNull @NonNull Logger logger, @NonNull @NonNull CrawlerConfig crawlConfig)
-