U.S. wholesale prices increased in December, pushed up by rising gasoline prices and energy costs. But overall inflation remained mild.

The Labor Department said Wednesday that the producer price index, which measures costs before they reach the consumer, rose 0.4 percent last month from November. That ends three straight months of falling wholesale prices.