|
static void | Add< T > (T instance) |
|
static void | Error (object message) |
|
static void | Error (string message) |
|
static void | Error (string message, object arg0) |
|
static void | Error (string message, object arg0, object arg1) |
|
static void | Error (string message, object arg0, object arg1, object arg2) |
|
static void | Error (string message, params object[] args) |
|
static void | Exception (Exception exception) |
|
static void | Info (object message) |
|
static void | Info (string message) |
|
static void | Info (string message, object arg0) |
|
static void | Info (string message, object arg0, object arg1) |
|
static void | Info (string message, object arg0, object arg1, object arg2) |
|
static void | Info (string message, params object[] args) |
|
static void | RemoveAll () |
|
static void | Warn (object message) |
|
static void | Warn (string message) |
|
static void | Warn (string message, object arg0) |
|
static void | Warn (string message, object arg0, object arg1) |
|
static void | Warn (string message, object arg0, object arg1, object arg2) |
|
static void | Warn (string message, params object[] args) |
|
Provides logging capabilities to a variety of outputs
Example: Logging with different status levels.
void OwnerOnAttack(BoltEntity player, BoltEntity target) {
if(!target.IsAttached) {
BoltLog.Error("Attempting to target an entity that is not attached: {0}", target.NetworkId);
}
else {
BoltLog.Info("{0} attack on {1}", player.NetworkId, target.NetworkId);
var playerState = player.GetState<PlayerState>();
var targetState = target.GetState<PlayerState>();
targetState.HP = -= playerState.BaseDamage * playerState.DamageModMultiplier;
}
}