pub struct LogEvent {
pub executor: String,
pub output: String,
/* private fields */
}Expand description
A LogEvent is created for every command that is successfully executed and logged.
There are a few preconditions for commands to write their output to the log file. They are documented on the command module in detail. That module also contains functions to generate common commands that produce useful LogEvents.
This is what a LogEvent looks like in Minecrafts log file:
[13:14:30] [Server thread/INFO]: [executor: output]Fields§
§executor: StringThe name of the player, command block or command block minecart that executed the command.
output: StringThe output of the command.
Trait Implementations§
impl Eq for LogEvent
impl StructuralPartialEq for LogEvent
Auto Trait Implementations§
impl Freeze for LogEvent
impl RefUnwindSafe for LogEvent
impl Send for LogEvent
impl Sync for LogEvent
impl Unpin for LogEvent
impl UnwindSafe for LogEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.