Automatically logged class builder.