Namespace: OpenEdge.Logging.Format
Class
ResolvedTokenFormat
Parent classes:
Inherits: Progress.Lang.Object
Implements: OpenEdge.Logging.Filter.ILoggerFilter, OpenEdge.Logging.Format.ISupportFormatting, OpenEdge.Core.ISupportInitialize

/* *************************************************************************************************************************
Copyright (c) 2016-2017, 2019 by Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
File:ResolvedTokenFormat
Purpose:Formats a token-based message using the OE.Core.Util.TokenResolver
Author(s):pjudge
Created:Wed Nov 16 13:02:52 EST 2016
Notes:- The format tokens are resolved first, then any message tokens
- The format defaults to ${msg.msg}
- This filter has special handling for the following tokens
${msg}
(LogMessage.Message)
${msg.[sub-token]}
sub-token
grp LogMessage.GroupName
logger[.format] LogEvent.LoggerName
level LogEvent.LogLevel
stack.depth LogEvent.Callstack[depth]; the lesser of the size of the stack or <depth>; set to 1 if not specified
cp.[arg] LogEvent.LoggedBy
err LogEvent.Error; passed to the TokenResolver's ResolveError() method
- All of the msg.[sub-token] messages are fully-resolved here
- The ${t.*} and ${cp.*} tokens are passed into the TokenResolver's ResolveTime() and ResolveUser()
methods with a value taken from the LogEvent (as opposed to the system default values).
/* Format for the logger name. See the TokenResolve class for more




Method Summary
Options Name Purpose
Destroy ()
ExecuteFilter (LogEvent) /** Performs implementation-specific filtering for a logger type @param LogMessage The message to log. */
Initialize ()

Constructor Summary
Options Name Purpose
ResolvedTokenFormat () /* Default constructor */

Property Summary
Options Name Purpose
CHARACTER Format


Method Detail
Top

Destroy ()

Top

ExecuteFilter (LogEvent)

Purpose: Performs implementation-specific filtering for a logger type
Parameters:
pEvent OpenEdge.Logging.LogEvent
Top

Initialize ()



Constructor Detail
Top

ResolvedTokenFormat ()

/* Default constructor


Property Detail
Top

CHARACTER Format

Returns CHARACTER


Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15