public interface

MigrationLog

com.atlassian.jira.upgrade.tasks.role.MigrationLog
Known Indirect Subclasses

Class Overview

Accumulates state, for logging upon completion of migration; which messages are logged depends on whether the migration was successful or not. This class does not perform any logging itself; see MigrationLogDao for that.

Summary

Public Methods
@Nonnull Collection<AuditEntry> events()
Gets all the events recorded so far.
MigrationLog log(AuditEntry event)
Accumulates a new event for logging into a new MigrationLog.

Public Methods

@Nonnull public Collection<AuditEntry> events ()

Gets all the events recorded so far.

Returns
  • all the events accumulated in this chain of loggers

public MigrationLog log (AuditEntry event)

Accumulates a new event for logging into a new MigrationLog.

Parameters
event the event to log
Returns
  • a new MigrationLog which is a copy of this one with the new event added