The invention relates to an arrangement (1) for marking a log end surface (4a) with a marking code during cutting of a log (4) and amethod for marking a log end surface (4a)with a marking code. The arrangement (1) is connected to a saw bar (3) comprising a plurality offluid distributing nozzles(6) in communication with a fluid container (16). The arrangement (1) further comprises acontrol unit (CU) arranged to control the flow of fluid through eachnozzle (6)based on log-related identification code. The invention is characterised in thatthe flow of fluid through eachnozzle (6)is controlled based on the movement of the saw bar (3) relative to the log in a cutting direction.
QS 2015