Showing posts with label log files. Show all posts
Showing posts with label log files. Show all posts

Friday, 3 February 2017

Quick event logging guide with MS EL–really for me

CONCEPTS

· Source = Only used by the Machine Event Viewer

· EventId  number that goes in the EventId column of database Log

· TraceEventType (System.Diagnostics.TraceEventType) = a system enum for the log level (info, verbose, error, critical)

PROJECT

We need to add a reference to these:

clip_image002

Config

This page explains it - https://msdn.microsoft.com/en-us/library/ff664760(v=pandp.50).aspx

Where is the tool?

The tool is in tfs - /EnterpriseLibrary5/Bin/EntLibConfig.exe

 

REGISTERING SOURCES FOR EVENTS LOG

If you ever need to register a source (for the Event Log), you run this from PowerShell

New-EventLog -LogName Application -SRC MyNewSource –computername <server>,<other>,<servers,go,here>

Is my source registered?

There’s a way to know what sources has been registered in a machine (see attached).

But it is easier to simply run the previous command to make sure

Tuesday, 22 March 2016

JBOSS on windows–changing log directory (EAP-6.2.0)

1) Create directory structure D:\EAP-6.2.0\jboss-eap-6.2\standalone\log
2) Change registry entry HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\ProcRun 2.0\JBossEAP 6.0\Parameters\Log\Path to structure D:\EAP-6.2.0\jboss-eap-6.2\standalone\log
3) Restart jboss eap service.
I found the combination of batch files, services, 32 bit WOW and java a bit disconcerting!