Disable log4j console logging and enable file logging
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further My log4j.properties file is: , Add this line to your config: log4j.appender.scheduler.additivity=false
log4j.additivity.info.release.scheduler=false
|
Enable / Disable commands depending on executed commands
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further Alright, I figured out a solution, though I'm not quite sure if it's elegant. After a command (e.g. LoginCommand) gets executed the QueryStatus() method gets called multiple times, but with a different value for commandName. public void QueryStatus(string commandName, vsCommandStatusTextWanted neededText, ref vsCommandStatus status, ref object commandText)
{
if(neededText == vsCommandStatusTextWanted.vsCommandStatusTextWantedNone)
{
if (loginOkay == 0)
{
if (commandName == addInInstance.ProgID + "." + LOGIN_NAME)
{
status = (vsCommandStatus)vsCommandStatus.vsCommandStatusSupported;
}
if (commandName == addInInstance.ProgID + "." + LOGOUT_NAME ||
commandName == addInInstance.ProgID + "." + LOCK_NAME ||
commandName == addInInstance.ProgID + "." + UNLOCK_NAME ||
commandName == addInInstance.ProgID + "." + CHECKIN_NAME ||
commandName == addInInstance.ProgID + "." + CHECKOUT_NAME)
{
status = (vsCommandStatus)vsCommandStatus.vsCommandStatusSupported | vsCommandStatus.vsCommandStatusEnabled;
}
}
else if (loginOkay == 1)
{
if (commandName == addInInstance.ProgID + "." + LOGIN_NAME)
{
status = (vsCommandStatus)vsCommandStatus.vsCommandStatusSupported | vsCommandStatus.vsCommandStatusEnabled;
}
if (commandName == addInInstance.ProgID + "." + LOGOUT_NAME ||
commandName == addInInstance.ProgID + "." + LOCK_NAME ||
commandName == addInInstance.ProgID + "." + UNLOCK_NAME ||
commandName == addInInstance.ProgID + "." + CHECKIN_NAME ||
commandName == addInInstance.ProgID + "." + CHECKOUT_NAME)
{
status = (vsCommandStatus)vsCommandStatus.vsCommandStatusSupported;
}
}
else
{
status = vsCommandStatus.vsCommandStatusUnsupported;
}
}
}
|
SSIS Logging: Enable/Disable Logging Using Variable Instead of Re-Deployment
Tag : ssis , By : nd27182
Date : March 29 2020, 07:55 AM
it fixes the issue Packages have LoggingMode property, which you can change when you run package using GUI or dtexec command line switch: ( more info) dtexec /f "C:\Package.dtsx" /set "\Package.Properties[LoggingMode];2"
|
how to enable stacktrace log in jboss soa 5.3 to get rid of Enable more detailed logging to see the entire stacktrace
Date : March 29 2020, 07:55 AM
|
Enable Logging to Batch File Commands
Date : March 29 2020, 07:55 AM
I hope this helps . The log file is empty because you suppressed the output with the command echo off
timeout 6
@echo off
SET LOGFILE=C:\Users\xason\Desktop\Logs\logs.txt
echo on
call :logit >>%LOGFILE%
exit /b 0
:logit
set root=C:\ORACLE\ORA_DRIVERS
cd %root%
UPDATE.EXE E:\class.ora
@timeout 6 >nul
|