Namespace: OpenEdge.Logging
Type: Class ConfigFileLoggerBuilder
Parent Classes:
Inherits: OpenEdge.Logging.JsonConfigLoggerBuilder


Copyright (c) 2016-2022 by Progress Software Corporation. All rights reserved.
File:ConfigFileLoggerBuilder
Purpose:Loads JSON-based logger configuration from a known file
Author(s):pjudge
Created:Mon Dec 05 09:48:11 EST 2016
Notes:* Assumes the config is stored in a JSON file
- named logging.config that is in PROPATH
- matching the schema in $DLC/src/corelib/OpenEdge/Logging/logging.config.schema
/* The time at which we last checked the config file



Method Summary
  Options Name Purpose
  ClearConfig () /* Clears the config - resets last-read and other timestamps. This will cause the next request for a file-based logger to re-check the file on disk */
  OpenEdge.Logging.ILogWriter GetLoggerInstance () /* Constructs the actual logger instance @return ILogWriter A new or cached logged */
  LoadFromFile (character) /* Loads logging config from a file @param character The filename to load. */

Constructor Summary
  Options Name Purpose
  ConfigFileLoggerBuilder () /* Static constructor */
  ConfigFileLoggerBuilder (character) /* Constructor @param character The logger type being built */

Property Summary
  Options Name Purpose
  LOGICAL ConfigFileChanged
  INTEGER FileCheckInterval
  INT64 TimeSinceCheck


Method Detail
Top

ClearConfig ()

/* Clears the config - resets last-read and other timestamps.
This will cause the next request for a file-based logger to re-check
the file on disk
Top

OpenEdge.Logging.ILogWriter GetLoggerInstance ()

/* Constructs the actual logger instance
Returns OpenEdge.Logging.ILogWriter
  ILogWriter A new or cached logged
Top

LoadFromFile (character)

/* Loads logging config from a file
Parameters:
pFileName CHARACTER
 


Constructor Detail
Top

STATIC ConfigFileLoggerBuilder ()

/* Static constructor
Top

ConfigFileLoggerBuilder (character)

/* Constructor
Parameters:
pcLoggerType CHARACTER
 


Property Detail
Top

LOGICAL ConfigFileChanged

Returns LOGICAL
 
Top

INTEGER FileCheckInterval

Returns INTEGER
 
Top

INT64 TimeSinceCheck

Returns INT64