Paul Bunyan for Windows: the manual
The help file for the original Paul Bunyan Message Logging Utility for Windows (versions 2.x, 1998 to 2011): the viewer, the message server, the API and the appendix of numbered notifications. Archived; the Windows product is no longer sold or supported.
Overview
- Introduction
Welcome to Diamond Sierra’s Paul Bunyan!
- Trial and Purchase Model
When Paul Bunyan is installed, it runs as a fully functional Enterprise edition for a 21 day trial period. When purchased, a license key is issued at the…
- Contacting Us
License keys:
- Adding a Remote Connection
To download and view log messages from a remote computer, a new connection must be created. New connections are created using the Connections dialog which is invoked with…
- Adjusting Filtering and Display Settings
Once the desired message server connections are established and the log messages downloaded to the viewer, the next step is to fine tune the display. This is accomplished…
- Creating Log Messages – The Message Logging Interfaces
Paul Bunyan’s log message creation interfaces comprise a C/C++ API, a command line executable, an in-process COM server, and other API extension components not formally included as part…
- Design Philosophy
Paul Bunyan was designed with a number of goals in mind. Diamond Sierra wanted to completely round out the product in all aspects and implement each of those…
- Downloading and Displaying Log Messages – The Viewer
The viewer is used to download log messages from the message server(s) and display them to the user. It supports secure logging, concurrent message server connections over internal…
- Getting Started Creating Log Messages
Log messages are created in the message server in a number of ways. The methods listed below fall into two camps: creating new logging and redirecting existing logging.…
- Getting Started Creating Log Messages by Hooking Calls to OutputDebugString()
Getting Started Logging with the API,Samples
- Getting Started Creating Log Messages by Intercepting Text File Based Logging
Text file based logging may easily be redirected to Paul Bunyan through the use of its companion product, Falcon. Falcon contains a File Interception component specifically designed to…
- Getting Started Creating Log Messages by Redirecting Existing Logging Calls
Getting Started Logging with the API,Samples
- Getting Started Creating Log Messages Using the API
API Overview,Samples
- Getting Started Creating Log Messages Using the API – ASP
COM Interface Reference,Samples
- Getting Started Creating Log Messages Using the API – C
C and C++ API Reference,Samples
- Getting Started Creating Log Messages Using the API – C++
C and C++ API Reference,Samples
- Getting Started Creating Log Messages Using the API – Command Line
Command Line Interface Reference,Samples
- Getting Started Creating Log Messages Using the API – InstallShield
COM Interface Reference,Samples
- Getting Started Creating Log Messages Using the API – SQL Server
Paul Bunyan does not presently include formal support for SQL Server. The SQL Server API is instead available as an API Extension module. All API Extensions have complete…
- Getting Started Creating Log Messages Using the API – Sybase
Paul Bunyan does not presently include formal support for Sybase. The Sybase API is instead available as an API Extension module. All API Extensions have complete usage instructions…
- Getting Started Creating Log Messages Using the API – Visual Basic
COM Interface Reference,Samples
- Getting Started Creating Log Messages Using the Command Line Utility
Command Line Interface Reference,Samples
- Getting Started Creating Log Messages Using the Samples
- Getting Started Viewing Log Messages
The message viewer is used to download log messages from the message server(s) and display them to the user. It supports multi-query viewing with fully configurable display capabilities…
- Getting Started with Paul Bunyan
Paul Bunyan is a message logging system that allows software applications to create log messages containing status and error information and/or application data. Log messages are displayed to…
- Getting Started with VB Dialog
- Overview
- Paul Bunyan Overview
Paul Bunyan is a message logging system that allows software applications to create log messages containing status and error information and/or application data. Log messages are displayed to…
- Routing, Processing, and Storing Log Messages – The Message Server
The message server runs in the background receiving, routing, processing, and storing log messages. It receives messages from locally resident logging applications as well as messages forwarded from…
- Samples
The following programs and examples illustrate all that is needed to start logging. Also feel free to visit the web site for additional ideas and samples as Diamond…
Concepts
- Log Messages
A log message in general is a text string with an abundance of contextual information. Some of that information is passed to the logging calls through direct or…
- Components and Contexts
Working with Components and Contexts,Filter dialog
- Filters
Paul Bunyan supports very powerful and flexible filter functionality. Filters are currently used in defining queries, configuring connections to message servers, and for selecting messages to be route…
- Security
There are plenty of scenarios where vendors would not want to be airing dirty laundry in front of clients or other competing vendors. As such we have implemented…
- The IPC Buffer
Messages are communicated to the message server through the IPC buffer. The IPC buffer is implemented in shared memory via a memory mapped file. This is chiefly for…
- Message Handlers
Creating and Installing Message Handlers,Configuring Message Handlers, Message Server Overview, Message Server Configuration
- Forwarding Log Messages
Configuring Forwarding,Message Server Overview, Message Server Configuration,
- Error Handling and Notification
A message logging system is most useful when its information can be relied upon and trusted. There are a number of scenarios where messages can be lost or…
- Response Files
Automated installations can be directed to use response files to specify installation options to the installer or the setup application. The format of a response file is a…
The Viewer
- The Viewer
The viewer is ultimately what is used to download log messages from message servers and display them to the user. It supports concurrent connections over TCP/IP, multiple queries…
- The Menus
| File | Edit | View | Query | Connect | Window | Help |
- The Status Bar
1 Number of log messages in the workspace.
- The Configurations Dialog
The Configurations dialog manages a workspace's list of configurations. Configurations can be created, edited, and uploaded to message servers. Information contained in the selected configuration is d…
- The Connections dialog
Paul Bunyan Overview,Viewer Overview, Message Server Overview
- The Filter Dialog
The filter dialog is used for two things: creating or editing globally available selectors and building filters that use them.
- The Find Dialog
The Find dialog is used to search for text in displayed text fields of the active query. A combo box is provided to enter search text. Recent strings…
- The Go To Dialog
Invokes a GoTo dialog for simple redirection.
- The Import Dialog
| | |
- The Message Keys Dialog
The message keys dialog is used to add and remove message keys in the workspace. Message keys are uploaded to the message servers at the time of connection…
- The Message Properties Dialog
The Message Properties dialog provides an expanded view of individual log messages. It is loaded with all the selected messages in the active query when invoked. It displays…
- The Queries Dialog
The Queries dialog manages the queries in the workspace. All queries in the workspace are presented in a list box. A check to the left of a query…
- The Query Display Settings Dialog
| | |
- The Query Name Dialog
The Query Name dialog is presented when a workspace is being saved or a query is being closed and the query has been modified but not yet named.…
- The Retry Schedule Dialog
Message Server Configuration,Configuring Retry Schedules, Configuring Message Handlers, Configuring Message Forwarding
- The User Preferences Dialog
The User Preferences dialog is used to configure general user options that span workspaces.
- The Filter Dialog – Date/Time Page
The radio buttons in the Time scale group govern which of the log message’s three time fields, Source time, Local time, or GMT, the validation criteria specified in…
- The Filter Dialog – General Page
The text string name of the selector. This is not required for anything other than readability but when there get to be more than a couple selectors it’s…
- The Filter Dialog – Text Fields Page
An edit box is presented for each string field in a log message. If a field is left blank, no comparison is done on that field. If a…
- Viewer Binary Attachment
The use of binary attachments is not supported in this version but is slated for release in future versions.
- Viewer Dialogs – Forwarders
- Viewer Dialogs – General Config
- Viewer Dialogs – Message Handlers
- Viewer Dialogs – Settings
- Viewer Import Export
The importing and exporting of log messages is not supported in this version but is slated for release in future versions.
The Message Server
- The Message Server
Message Handler Overview,Message Forwarding Overview, Message Server Configuration
- Message Server Configuration
Message Server Overview,Configurations Dialog
- Configuring Memory Usage
Message Server Overview,Configuration Settings Appendix
- Configuring Message Handlers
Message Handler Overview,Message Server Overview,Message Server Configuration
- Configuring Message Forwarding
Message Forwarding Overview,Message Server Overview,Message Server Configuration
- Configuring Retry Schedules
Message Server Overview,Message Server Configuration,Message Handlers,Forwarders
Utilities
- Paul Bunyan Message Server Control
Since Windows 95/98 provides only a rudimentary implementation of services, a utility is provided to act as an interface to the message server. It supports commands similar to…
Scripting
- Automating the Installation Process
The installer and setup application support command line options to replace the wizard portion of setup. The table below lists the options supported by the installer, the setup…
The API
- API Overview
Getting Started Logging,Samples
- The Command Line Interface
API Overview,Getting Started Logging, Samples
- The COM Interface
API Overview,Getting Started Logging, Samples
- The COM Interface – PBLogger
COM Interface Overview,What’s a Log Message ,Samples
- The COM Interface – PBScopeLogger
COM Interface Overview,What’s a Log Message ,Samples
- The C and C++ API
API Overview,Getting Started Logging, Samples
- Logging a Message
C and C++ API Overview,Getting Started Logging, Samples
- Working with Components and Contexts
C and C++ API Overview,Components and Contexts Overview, Samples
- Initialization, Diagnostics, and Miscellaneous
PBInitialize is provided as a diagnostic and as a performance enhancement. It is normally called implicitly the first time you call any of the API functions and as…
- Preprocessor Macros
In the C and C++ API we use a fair number of preprocessor macros and define constants. They are listed below.
- PB_DEBUG_LEVEL
The preprocessor macro PB_DEBUG_LEVEL is used to create conditionally compiled code in a manner somewhat similar to the standard DEBUG macro with the major difference being that it…
- Filename String Pooling (PB_THIS_FILE)
All of the logging calls have the source code’s filename passed in to them. This string ultimately comes from the preprocessor’s expansion of the __FILE__ macro via the…
- Location Macros (PB_LOC_***)
The following preprocessor macros are used to manage location information (filenames and line numbers) for the logging calls. The various forms work together to provide consistency when prototyping…
- Location / Message Type Macros (PB_VERBOSE, PB_INFO, …)
The location / message type preprocessor macros are used when invoking logging calls or wrapper functions that pass location and message type information through to logging calls. They…
- PB_DEFAULT_EXCLUDE
The PB_DEFAULT_EXCLUDE preprocessor macro is used as a default argument for the constructors of the CPBComponent, CPBContext, and CPBLogger classes. They accept exclusion flags that govern which messa…
- ENSURE and VALIDATE
The ENSURE and VALIDATE preprocessor macros are used in similar fashion to MFC's VERIFY and ASSERT macros respectively but with the following differences (features):
- PBInitialize
Returns TRUE if initialization succeeds (or has already succeeded on a previous call) else FALSE. Note that a return of FALSE may only indicate that Paul Bunyan is…
- PBUninitialize
dwMilliseconds Maximum time to wait for other threads to complete their work before aborting cleanup.
- PBGetLibVersion
Returns a ULONG that is interpreted as follows:
- PBGetFailCount
Returns the number of errors since the process was created or since the last call.
- PBSetUnhandledExceptionFilter
pfnExceptionFilter Pointer to a function to execute when an unhandled exception occurs.
- PBSetComponent and PBSetContext
Components and Contexts Overview,Working With Components and Contexts
- PBSetDefaultComponent and PBSetDefaultContext
Components and Contexts Overview,Working With Components and Contexts
- PBLog
C and C++ API Overview,What’s a Log Message,Samples
- Class CPBComponent
Components and Contexts Overview, Working With Components and Contexts
- Class CPBContext
Components and Contexts Overview,Working With Components and Contexts
- Class CPBLogger
C and C++ API Overview,What’s a Log Message,Samples
- Class CPBScopeLogger
C and C++ API Overview,What’s a Log Message,Samples
- CPBComponent::CPBComponent
ulNameStringId String table resource identifier of string that will be used for the szName field of the underlying PB_COMPONENT structure.
- CPBComponent::Enable
The previous value of the blEnable field.
- CPBComponent::operator PB_COMPONENT*
The address of the underlying PB_COMPONENT structure.
- CPBComponent::SetExclude
The previous value of the ulExclude field.
- CPBComponent::SetMessageKey
Calls PBSetComponent to change the szMessageKey field of the underlying PB_COMPONENT structure.
- CPBComponent::SetName
Calls PBSetComponent to change the szName field of the underlying PB_COMPONENT structure.
- CPBContext::CPBContext
ulNameStringId String table resource identifier of string that will be used for the szName field of the underlying PB_CONTEXT structure.
- CPBContext::Enable
The previous value of the blEnable field.
- CPBContext::operator PB_CONTEXT*
The address of the underlying PB_CONTEXT structure.
- CPBContext::SetExclude
The previous value of the ulExclude field.
- CPBContext::SetName
Calls PBSetContext to change the szName field of the underlying PB_CONTEXT structure.
- CPBLogger::CPBLogger
pcp Pointer to PB_COMPONENT structure to be used explicitly on calls to the Log member function. Overrides use of default component for all logging by this object.
- CPBLogger::Enable
The previous value of the blEnable flag.
- CPBLogger::Log
Note that in the above prototypes the location macro PB_LOC_ARGS expands to PC[W]STR pszFile, ULONG ulLine.
- CPBLogger::SetExclude
The previous value of the ulExclude flags.
- CPBScopeLogger::CPBScopeLogger
Note that in the above prototypes the location macro PB_LOC_ARGS expands to PC[W]STR pszFile, ULONG ulLine.
- Error Handling and Notification
Each of the interfaces trap exceptions that occur from using them, e.g. passing bad pointers to logging functions. They are caught and handled by Paul Bunyan so that…
- Initialization and shutdown
All API functions and interfaces initialize themselves implicitly whenever the first API call that requires initialization is made. The C/C++ API additionally supports manual initialization for diagno…
- PBLogger::Component
```
- PBLogger::Context
```
- PBLogger::Enable
```
- PBLogger::Exclude
```
- PBLogger::File
```
- PBLogger::Log
```
- PBLogger::MessageKey
The PBLogger Object,Security
- PBLogger::Module
```
- PBLogger::NoReturnCodes
The PBLogger Object,Security
- PBScopeLogger::NoReturnCodes
The PBScopeLogger Object,Security
- PBScopeLogger::Set
```
- Security
In the C/C++ API, security is tied to the component with the idea that a vendor will likely want to lock up log messages on a per component…
- Structures
Components and Contexts Overview,Working With Components and Contexts
- Typedefs and header file inclusion
The following #define constants govern the inclusion of the CRT and Win32 header files and the manual definition of the data types. This functionality is provided to allow…
Appendix
- End-User License Agreement (EULA)
END-USER LICENSE AGREEMENT FOR PAUL BUNYAN® MESSAGE LOGGING SOFTWARE
- Copyright Notice
License Agreement,Contacting Us
- Redistribution
Paul Bunyan is a locked application that runs for a fixed number of days as a trial application unless purchased and subsequently unlocked with a license key. If…
- Connectivity Licensing
Redistribution,Contacting Us
- The Lite, Professional, and Enterprise Editions
Paul Bunyan is sold in three editions, which are described below.
- Creating and Installing Message Handlers
Message Handler Overview,Configuring Message Handlers,Message Server Overview
- Configuration Settings
Message Server Configuration,Configurations Dialog
- Troubleshooting
For general troubleshooting information please contact us. Also feel free to visit the web site at www.DiamondSierra.com for tips and usage ideas. Several customers have sent in ideas…
- System Modifications
Paul Bunyan consists of several components. The functionality of these components is described in the main help file installed by the setup program, PB.hlp. The purpose here is…
- Glossary
| Active query | Forwarder | Module |
- Notifications and Errors
The Error handling and notification section explains Diamond Sierra’s error handling philosophy at large. This section provides a reference for all notification, warning, and error messages that may…
- Event Log Notifications
Message generators and message servers use the application event log to report events in two general scenarios. Any errors that prevent a process from successfully executing PBInitialize (implicitly…
- Paul Bunyan Notifications
In addition to the logging of Event Log entries, Paul Bunyan will also notify you of unusual occurrences through the generation of Paul Bunyan log messages. These messages…
- Viewer Notifications
Viewer notifications come in the form of message boxes. If the message box displays an error number, it is documented below. References to refer to errors defined in…
- Socket Error Codes
The following is a list of common socket error codes that may be reported by the message server or message viewer and their probable causes/resolutions. First are listed…
- No Help Available
No help is available for this message box.
- Time Format Syntax
Paul Bunyan uses the MFC function COleDateTime::Format to carry out the formatting, which presently uses the ANSI C run-time function strftime. The syntax for the format string is…
Glossary
- Definition – Active Query
References to the active query mean active in the MDI sense. Query menu commands apply to the window which has or last had the input focus.
- Definition – Auto Delete
By default, when a log message is deleted from the workspace in one query all other open queries are notified so that they will update themselves to reflect…
- Definition – Auto Refresh
With auto-refresh enabled, new messages coming in over a connection are displayed immediately. Disabling this option will prevent the query from being re-drawn without user intervention. This facilita…
- Definition – Auto Sort
Like auto-refresh, auto-sort only applies to new messages as they are received over an active connection. If auto-refresh is enabled for a query, new messages will be displayed…
- Definition – bookmark
A bookmark is used within a query to remember the position of a displayed log message. You can jump from bookmark to bookmark by using the Edit menu…
- Definition – Component and Context
All log messages contain a component field and a context field which are essentially text strings that are used to logically group messages together (e.g. “Database Server” and…
- Definition – configuration
A configuration refers to the settings used by the message server and message generators to control resource usage, route log messages, and enable message handlers. A workspace maintains…
- Definition – connection
A connection represents a TCP/IP link between a viewer and a message server for the purpose of transferring log messages. A connection consists of a name, an IP…
- Definition – default
If a component or context is not provided to a logging call then a default will be used if one has been previously installed. A default component or…
- Definition – fail count
The fail count is used in code to narrow down where a log message is being lost. This is particularly useful because internal error messages in such situations…
- Definition – filter
A filter is a composite entity consisting of a name, a filter type (inclusion or exclusion), and one or more selectors. Filters determine the routing and displaying of…
- Definition – forwarder
The term forwarder is used in two contexts. In a configuration sense, a forwarder is an abstract object saved in a workspace or configuration file representing all the…
- Definition – forwarding
Log messages can be forwarded from one message server to another. This allows them to be routed from strictly internally accessible machines where they are generated to externally…
- Definition – generator
The term generator denotes any application that generates log messages.
- Definition – Interprocess Communication
Interprocess Communication
- Definition – IPC buffer
Log messages are transmitted from the generator to the message server by passing them through the IPC buffer which is a region of shared memory used for interprocess…
- Definition – log message
A log message is essentially a text string accompanied by an abundance of contextual information. Log messages are created by the API, distributed by the message server, and…
- Definition – log message field
Message type, timestamps (local, source, GMT), component, context, machine, process name, module name, file name, line number, process id, thread id, and message text.
- Definition – logging call
The term logging call generally refers to any and all of the various functions and external methods and/or interfaces used to create log messages. This includes the PBLog…
- Definition – mark
A mark is simply a visual cue to the left of a message used to call attention to that message. Marks are retained until the query window is…
- Definition – message handler
Paul Bunyan defines and exports a COM interface that allows the message server to pass log messages to other applications (COM servers) so that they may be processed…
- Definition – Message Key
A message key is a text string used to lock and unlock log messages. See the Security overview for further information.
- Definition – message logging systems
A message logging system allows software to create messages and transmit them to a location where they can be viewed or processed. The Windows NT Event Log viewer…
- Definition – message server
The message server is an NT service that receives log messages from generators and routes them to message handlers, forwards them to other message servers, and downloads them…
- Definition – module
For our purposes, a module identifies an executable file that is loaded into memory. Typically, this is a dll or exe where a dll can be one of…
- Definition – Most Recently Used
Most Recently Used
- Definition – NT service
An NT service is basically just a normal executable program that has a few hooks that the operating system can call to tell it to start, stop, pause,…
- Definition – port
A port is a numerical identifier used in the routing of TCP/IP communications between software applications.
- Definition – public and private messages
See the Security topic in the main application help for more information on logging public and private messages.
- Definition – query
A query is a window used to display a subset of the log messages in a workspace. A query consists of a filter and a set of display…
- Definition – refresh
A refresh of a query causes data displayed by the query to be brought up to date with the data in the workspace. The query’s filter is applied…
- Definition – restored
A message is said to be restored when it has been deleted in one query and then undeleted in another. This only happens if the latter query has…
- Definition – selector
A selector consists of a set of criteria for determining whether or not a log message is ‘selected’ for inclusion or exclusion operations within a filter. Selectors exist…
- Definition – Time Field
When log messages are created, they are stamped with the system time. This time is always relative to the same time zone (Greenwich Mean Time) for ease of…
- Definition – TODAY
TODAY is a placeholder used to indicate that the current date (in the time zone specified by the time scale group in the Filter Dialog) should be used…
- Definition – user message
A user message is a message with message type not equal to one of the types predefined by Paul Bunyan.
- Definition – viewer
The viewer is a desktop application used to display log messages downloaded from message servers.
- Definition – workspace
A workspace is a file edited by the viewer. A workspace consists of zero or more objects of the following types: selectors, queries, connections, message keys, configurations, and…
- IP Addresses and Ports
An IP address is an identifying token used to route communications over networks supporting the Internet Protocol. Most internal networks as well as the Internet use the Internet…
- Message Types
There are 10 message types and they are described in the table below.
- Running Setup
Paul Bunyan is installed by running a self extracting executable called the installer, e.g. PB2-2-0.exe. (The three numbers separated by hyphens are the major version, minor version, and…
