MessageBinary.java
/*******************************************************************************
* Copyhacked (H) 2012-2020.
* This program and the accompanying materials
* are made available under no term at all, use it like
* you want, but share and discuss about it
* every time possible with every body.
*
* Contributors:
* ron190 at ymail dot com - initial implementation
******************************************************************************/
package com.jsql.view.terminal.interaction;
import com.jsql.view.interaction.InteractionCommand;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class MessageBinary implements InteractionCommand {
private static final Logger LOGGER = LogManager.getRootLogger();
/**
* Text to append to the Binary log area.
*/
private final String text;
public MessageBinary(Object[] interactionParams) {
this.text = (String) interactionParams[0];
}
@Override
public void execute() {
LOGGER.info(this.text::trim);
}
}